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

Re: adduser Pre-Depends for qemu-system-common



Quoting Michael Biebl (biebl@debian.org):
> On 14.03.2013 22:15, Ansgar Burchardt wrote:
> > Hi,
> > 
> > Serge Hallyn <serge.hallyn@ubuntu.com> writes:
> >> qemu-system-common installs a udev rules file which sets /dev/kvm group
> >> to 'kvm'.  Its postinst then adds a kvm group.  However udev reads the
> >> new rules file as soon as it sees it, sees that group kvm doesn't
> >> exist, and ignores that part of the rule (until reboot, udev restart,
> >> or the rule is re-added, of course).
> > 
> > Couldn't postint tell udev explicitly to reload rules after the kvm
> > group was added? The init script has a reload action which calls
> > udevadm control --reload-rules which might do the right thing.
> 
> I'd probably just do an explicit chown/chmod /dev/kvm (given the device
> exists) in postinst.

That is not sufficient.  If something else does udevadm trigger, udev
will re-label /dev/kvm with the old group perms.

-serge


Reply to: