[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.
On 21/10/09 06:06, Charles Duffy wrote:
--- 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
This looks sensible to me. I'll push it. Matt -- Matthew Booth, RHCA, RHCSS Red Hat Engineering, Virtualisation Team M: +44 (0)7977 267231 GPG ID: D33C3490 GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490
participants (2)
-
Charles Duffy -
Matthew Booth