Re: how reload udev rules and systemd on F18

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 09.02.13 13:18, Sérgio Basto (sergio@xxxxxxxxxx) wrote:

> On Sex, 2013-02-08 at 10:08 +0100, Florian Weimer wrote: 
> > On 02/05/2013 07:43 PM, Sérgio Basto wrote:
> > 
> > > Any advises or opinions ?
> > 
> > I think you haven't yet described the original problem you're trying to 
> > solve.
> 
> Hi, 
> 
> When we install VirtualBox from rpmfusion , I'd like create /dev/vboxusb
> proxies to host system without reboot box. I want that ends with:

Well, be that as it may. It's not OK to retrigger all devices. That's an
admin feature, and a feature for very specific usecases, but it's
nothing you are allowed to just call in package post scripts...

Basically, you cannot do this. You must either tell the admin to invoke
"udevadm trigger" on his own, or just not do it.

> 
> ll /dev/vboxusb -d 
> drwxr-x--- 4 root vboxusers 80 Fev  5 18:42 /dev/vboxusb
> 
> ll /dev/vboxusb
> total 0
> drwxr-x--- 2 root vboxusers 80 Fev  9 11:19 002
> drwxr-x--- 2 root vboxusers 60 Fev  5 18:42 001
> 
> the actual scriptlet:
> # Assign USB devices
> if /sbin/udevadm control --reload-rules >/dev/null 2>&1

Redundant.

> then
>    /sbin/udevadm trigger --subsystem-match=usb --action=add >/dev/null

Not OK.

> 2>&1 || :
>    /sbin/udevadm settle >/dev/null 2>&1 || :

Pointless, unless you are LVM, which you are not.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux