summaryrefslogtreecommitdiffstats
path: root/appliance
diff options
context:
space:
mode:
authorMatthew Booth <mbooth@redhat.com>2009-10-21 10:16:50 +0100
committerMatthew Booth <mbooth@redhat.com>2009-10-21 10:16:50 +0100
commit300461966b053bb62249f9084d4a85b25fee48f6 (patch)
tree18fa3f7f7cdb34309befd50f7fceb2353b75b8cc /appliance
parentc925dce4e7654cbcf66eb90528de18d5d09aa7c4 (diff)
downloadlibguestfs-300461966b053bb62249f9084d4a85b25fee48f6.tar.gz
libguestfs-300461966b053bb62249f9084d4a85b25fee48f6.tar.xz
libguestfs-300461966b053bb62249f9084d4a85b25fee48f6.zip
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 <charles@dyfis.net>
Diffstat (limited to 'appliance')
-rwxr-xr-xappliance/init4
1 files changed, 2 insertions, 2 deletions
diff --git a/appliance/init b/appliance/init
index 545232ce..4e9b66fc 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