how reload udev rules and systemd on F18
Sérgio Basto
sergio at serjux.com
Wed Feb 13 17:29:47 UTC 2013
On Qua, 2013-02-13 at 04:00 +0100, Lennart Poettering wrote:
> On Sat, 09.02.13 13:18, Sérgio Basto (sergio at serjux.com) 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.
Hi, OK but we don't have any command to trigger only /dev/vboxusb/* ?
> >
> > 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.
what you mean by redundant ? if I not reboot system, do I need
--reload-rules on F16+ ? (when install the package )
and when the package is remove, how I clean it up ? (without reboot)
> > then
> > /sbin/udevadm trigger --subsystem-match=usb --action=add >/dev/null
>
> Not OK.
I know, but if we don't have other solution I will keep it.
> > 2>&1 || :
> > /sbin/udevadm settle >/dev/null 2>&1 || :
>
> Pointless, unless you are LVM, which you are not.
OK , I will remove it
Many thanks,
--
Sérgio M. B.
More information about the devel
mailing list