mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
appliance: Remove /etc/dhcp/dhclient-enter-hooks.d/resolved.
Workaround for Ubuntu which uses this script to try to start a systemd service. That won't work because systemd is not used inside the appliance. See: https://bugs.launchpad.net/ubuntu/+source/supermin/+bug/1824236 Thanks: Ioanna Alifieraki
This commit is contained in:
@@ -122,7 +122,9 @@ ip link set dev lo up
|
||||
|
||||
if test "$guestfs_network" = 1; then
|
||||
iface=$(ls -I all -I default -I lo /proc/sys/net/ipv4/conf)
|
||||
touch /etc/fstab # Workaround for Ubuntu.
|
||||
# Two workarounds for Ubuntu:
|
||||
touch /etc/fstab
|
||||
rm -f /etc/dhcp/dhclient-enter-hooks.d/resolved
|
||||
if dhclient --version >/dev/null 2>&1; then
|
||||
dhclient $iface
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user