diff options
author | Richard Jones <rjones@redhat.com> | 2010-05-20 18:53:10 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2010-05-20 18:57:20 +0100 |
commit | 5f9630338b59d422b640a25a02b46abb3c5f1986 (patch) | |
tree | e0726091927b9b3e9db9295c476808df35c118bc /appliance | |
parent | 4557112772c2efaaf36c01ecb9dfe2a9f1899cc2 (diff) | |
download | libguestfs-5f9630338b59d422b640a25a02b46abb3c5f1986.tar.gz libguestfs-5f9630338b59d422b640a25a02b46abb3c5f1986.tar.xz libguestfs-5f9630338b59d422b640a25a02b46abb3c5f1986.zip |
ubuntu: Use direct udevd method to start udev on Ubuntu.
On Ubuntu, /etc/init.d/udev is a symlink to an upstart file,
but running that causes the appliance to hang.
Therefore detect if this is a symlink and fall through to the
direct start of udevd. This shouldn't affect Debian because the
file is not a symlink on standard Debian.
Diffstat (limited to 'appliance')
-rwxr-xr-x | appliance/init | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/appliance/init b/appliance/init index 9ecf007f..c622788c 100755 --- a/appliance/init +++ b/appliance/init @@ -10,7 +10,7 @@ mkdir -p /sysroot mount -t proc /proc /proc mount -t sysfs /sys /sys -if [ -x /etc/init.d/udev ]; then +if [ ! -L /etc/init.d/udev -a -x /etc/init.d/udev ]; then if type service >/dev/null 2>&1; then service udev start else |