From 300461966b053bb62249f9084d4a85b25fee48f6 Mon Sep 17 00:00:00 2001 From: Matthew Booth Date: Wed, 21 Oct 2009 10:16:50 +0100 Subject: [PATCH] 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 --- appliance/init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 1.8.3.1