Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use root user and group ownership for installed udev rules #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pdecat
Copy link

@pdecat pdecat commented Jan 18, 2020

This PR updates packaging instructions to use root user and group ownership for the installed udev rules.

Without --root-owner-group:

# dpkg-deb -b nrf-udev_1.0.1-all
dpkg-deb: building package 'nrf-udev' in 'nrf-udev_1.0.1-all.deb'.

# sudo dpkg -i nrf-udev_1.0.1-all.deb
[sudo] password for patrick:
Selecting previously unselected package nrf-udev.
(Reading database ... 391121 files and directories currently installed.)
Preparing to unpack nrf-udev_1.0.1-all.deb ...
Unpacking nrf-udev (1.0.1) ...
Setting up nrf-udev (1.0.1) ...
Reloading udev rules...

# ls -l /lib/udev/rules.d/*nrf*
-rw-r--r-- 1 patrick patrick    493 janv. 18 08:49 71-nrf.rules
-rw-r--r-- 1 patrick patrick    189 janv. 18 08:49 99-mm-nrf-blacklist.rules

With --root-owner-group:

# dpkg-deb --root-owner-group -b nrf-udev_1.0.1-all
dpkg-deb: building package 'nrf-udev' in 'nrf-udev_1.0.1-all.deb'.

# sudo dpkg -i nrf-udev_1.0.1-all.deb
(Reading database ... 391123 files and directories currently installed.)
Preparing to unpack nrf-udev_1.0.1-all.deb ...
Unpacking nrf-udev (1.0.1) over (1.0.1) ...
Reloading udev rules...
Setting up nrf-udev (1.0.1) ...
Reloading udev rules...

# ls -l /lib/udev/rules.d/*nrf*
-rw-r--r-- 1 root root 493 janv. 18 08:49 /lib/udev/rules.d/71-nrf.rules
-rw-r--r-- 1 root root 189 janv. 18 08:49 /lib/udev/rules.d/99-mm-nrf-blacklist.rules

@CLAassistant
Copy link

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants