From: Matthew Booth Date: Wed, 21 Oct 2009 09:16:50 +0000 (+0100) Subject: init: Check that start_udev succeeded X-Git-Tag: 1.0.75~11 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=300461966b053bb62249f9084d4a85b25fee48f6;p=libguestfs.git init: Check that start_udev succeeded If start_udev fails for any reason, notice and fall through to manual /dev creation. Patch from Charles Duffy --- diff --git a/appliance/init b/appliance/init index 545232c..4e9b66f 100755 --- a/appliance/init +++ b/appliance/init @@ -9,8 +9,8 @@ mount -t sysfs /sys /sys if [ -x /etc/init.d/udev ]; then /etc/init.d/udev start -elif [ -x /sbin/start_udev ]; then - /sbin/start_udev +elif [ -x /sbin/start_udev ] && /sbin/start_udev; then + : else echo No udev, creating /dev manually mount -t tmpfs none /dev