diff -Nru libguestfs-1.40.2/debian/changelog libguestfs-1.40.2/debian/changelog --- libguestfs-1.40.2/debian/changelog 2019-04-22 10:28:01.000000000 +0100 +++ libguestfs-1.40.2/debian/changelog 2019-05-30 12:30:29.000000000 +0100 @@ -1,3 +1,10 @@ +libguestfs (1:1.40.2-2ubuntu1.1) eoan; urgency=medium + + * d/p/appliance-Remove-etc-dhcp-dhclient-enter-hooks.d-res.patch : remove + /etc/dhcp/dhclient-enter-hooks.d/resolved (LP: #1824236) + + -- Ioanna Alifieraki Thu, 30 May 2019 12:30:29 +0100 + libguestfs (1:1.40.2-2ubuntu1) eoan; urgency=low * Merge from Debian unstable. Remaining changes: diff -Nru libguestfs-1.40.2/debian/patches/appliance-Remove-etc-dhcp-dhclient-enter-hooks.d-res.patch libguestfs-1.40.2/debian/patches/appliance-Remove-etc-dhcp-dhclient-enter-hooks.d-res.patch --- libguestfs-1.40.2/debian/patches/appliance-Remove-etc-dhcp-dhclient-enter-hooks.d-res.patch 1970-01-01 01:00:00.000000000 +0100 +++ libguestfs-1.40.2/debian/patches/appliance-Remove-etc-dhcp-dhclient-enter-hooks.d-res.patch 2019-05-30 12:29:10.000000000 +0100 @@ -0,0 +1,32 @@ +From: "Richard W.M. Jones" +Origin: Upstream, https://github.com/libguestfs/libguestfs/commit/2bb6be333e6347d3f18856627d8ad8e50b8e5427 +Bug-Ubuntu: https://launchpad.net/bugs/1824236 +Date: Thu, 18 Apr 2019 10:53:39 +0100 +Subject: [PATCH] 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 +--- + appliance/init | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +Index: libguestfs-1.40.2/appliance/init +=================================================================== +--- libguestfs-1.40.2.orig/appliance/init ++++ libguestfs-1.40.2/appliance/init +@@ -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 diff -Nru libguestfs-1.40.2/debian/patches/series libguestfs-1.40.2/debian/patches/series --- libguestfs-1.40.2/debian/patches/series 2019-04-22 04:45:56.000000000 +0100 +++ libguestfs-1.40.2/debian/patches/series 2019-05-30 12:12:51.000000000 +0100 @@ -13,3 +13,4 @@ 0013-Fix-up-perl-path-in-installed-scripts.patch 0014-Fix-.depend-generation-for-out-of-tree-build.patch 0015-Change-cryptsetop-cryptsetup-bin-in-appliance.patch +appliance-Remove-etc-dhcp-dhclient-enter-hooks.d-res.patch