[Libguestfs] [PATCH 4/5] Ubuntu: Prefer starting udev by hand, instead of using init script.
Guido Günther
agx at sigxcpu.org
Mon Dec 21 19:20:57 UTC 2009
On Mon, Dec 21, 2009 at 04:09:10PM +0000, Richard W.M. Jones wrote:
[..snip..]
> -if [ -x /etc/init.d/udev ]; then
> +if [ -x /sbin/udevd ]; then
> + echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug
> + /sbin/udevd --daemon
> + /sbin/udevadm trigger
> + /sbin/udevadm settle --timeout=10
> +elif [ -x /etc/init.d/udev ]; then
> service udev start
> elif [ -x /sbin/start_udev ] && /sbin/start_udev; then
Shouldn't this be:
if [ -x /etc/init.d/udev ]; then
....
elif [ -x /sbin/udevd ]; then
...
elif ...
Otherwise we'll start udev by hand even if the init script is there.
Cheers,
-- Guido
More information about the Libguestfs
mailing list