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

[Libguestfs] [PATCH] Fall back if /sbin/start_udev fails



Howdy.

I have an appliance in which /sbin/start_udev exists but does not run successfully:

/sbin/start_udev: line 36: /etc/init.d/functions: No such file or directory

This prevents the "modprobe virtio_net" line (among other things) from being invoked. The attached patch is what I'm applying locally to libguestfs-1.0.74 to work around the impact of this issue.
--- libguestfs-1.0.74/appliance/init.orig	2009-10-20 22:46:48.000000000 -0500
+++ libguestfs-1.0.74/appliance/init	2009-10-20 22:47:16.000000000 -0500
@@ -9,8 +9,8 @@
 
 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

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