File appliance.patch of Package libguestfs
Index: libguestfs-1.44.2/appliance/init
===================================================================
--- libguestfs-1.44.2.orig/appliance/init
+++ libguestfs-1.44.2/appliance/init
@@ -122,8 +122,10 @@ if test "$guestfs_network" = 1; then
rm -f /etc/dhcp/dhclient-enter-hooks.d/resolved
if dhclient --version >/dev/null 2>&1; then
dhclient $iface
- else
+ elif dhcpcd --version ; then
dhcpcd $iface
+ elif busybox udhcpc --help ; then
+ busybox udhcpc --quit -v
fi
fi
@@ -240,7 +242,8 @@ else
echo "Note: The contents of / (root) are the rescue appliance."
if ! test -d "/sysroot/dev"; then
echo "You have to mount the guest’s partitions under /sysroot"
- echo "before you can examine them."
+ echo "before you can examine them. A helper script for that exists:"
+ echo "mount-rootfs-and-chroot.sh /dev/sda2"
else
echo "Use 'cd /sysroot' or 'chroot /sysroot' to see guest filesystems."
fi