Hello Ioanna, or anyone else affected, Accepted libguestfs into disco-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/libguestfs/1:1.40.2-1ubuntu1.1 in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users. If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-disco to verification-done-disco. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-disco. In either case, without details of your testing we will not be able to proceed. Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping! N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days. ** Changed in: libguestfs (Ubuntu Disco) Status: In Progress => Fix Committed ** Tags added: verification-needed verification-needed-disco -- You received this bug notification because you are a member of STS Sponsors, which is subscribed to the bug report. https://bugs.launchpad.net/bugs/1824236 Title: supermin/liguestfs fails to configure network Status in libguestfs package in Ubuntu: Fix Released Status in supermin package in Ubuntu: Invalid Status in libguestfs source package in Bionic: In Progress Status in supermin source package in Bionic: Invalid Status in libguestfs source package in Cosmic: In Progress Status in supermin source package in Cosmic: Invalid Status in libguestfs source package in Disco: Fix Committed Status in supermin source package in Disco: Invalid Status in libguestfs package in Debian: New Bug description: [Impact] libguestfs cannot configure network on Bionic onward. This bug is a combination of libguestfs/supermin package and /etc/dhcp/dhclient-enter-hooks.d/resolved script from systemd, present on Bionic onward. When supermin creates the appliance does chroot and executes its init script. If networking is enabled init will call dhclient sript to configure the network. On Bionic onward the make_resolv_conf function of dhclient_script is overwritten in /etc/dhcp/dhclient-eneter-hooks.d/resolved which before exiting restarts the systemd.resolved service. However, this happening in chroot environment fails with "System has not been booted with systemd as init system (PID 1). Can't operate." and network is left unconfigured. [Test Case] $ sudo guestfish -a xenial-server-cloudimg-amd64-disk1.img --network -v << EOF run mount /dev/sda1 / command 'apt update' EOF libguestfs: launch: program=guestfish libguestfs: launch: version=1.36.13 libguestfs: launch: backend registered: unix libguestfs: launch: backend registered: uml libguestfs: launch: backend registered: libvirt ... supermin: deleting initramfs files supermin: chroot Starting /init script ... ... + dhclient --version + dhclient eth0 System has not been booted with systemd as init system (PID 1). Can't operate. ... commandrvf: apt update WARNING: apt does not have a stable CLI interface. Use with caution in scripts. W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/InRelease Temporary failure resolving 'archive.ubuntu.com' W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease Temporary failure resolving 'archive.ubuntu.com' W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease Temporary failure resolving 'archive.ubuntu.com' W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease Temporary failure resolving 'security.ubuntu.com' W: Some index files failed to download. They have been ignored, or old ones used instead. ... [Regression Potential] Minimal. The fix removes the /etc/dhcp/dhclient-eneter-hooks.d/resolved hook installed by systemd. systemd is not used inside the appliance so it should not cause any regression. https://bugs.launchpad.net/ubuntu/cosmic/+source/libguestfs/+bug/1824236/comments/18 https://bugs.launchpad.net/ubuntu/cosmic/+source/libguestfs/+bug/1824236/comments/19 [Other] Affects B,C,D,E. Upstream fix : https://github.com/libguestfs/libguestfs/commit/2bb6be333e6347d3f18856627d8ad8e50b8e5427 Debian bug : https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=929807 ----- Workaround 1) Assume that libguestfs is installed, if not : $ sudo apt-get install libguestfs-tools 2) Move the base.tar.gz to a temp dir, extract and remove tarball $ sudo mv /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/base.tar.gz ~/tempdir/ $ cd ~/tempdir $ sudo tar -xzvf base.tar.gz $ sudo rm base.tar.gz 3) Remove the etc/dhcp/dhclient-enter-hooks.d/resolved file $ sudo rm etc/dhcp/dhclient-enter-hooks.d/resolved 4) Create tarball again $ sudo tar -czvf base.tar.gz etc 5) Move it back to installation dir $ sudo mv base.tar.gz /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/ 6) Clean cache $ sudo rm -rf /var/tmp/.guestfs* To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libguestfs/+bug/1824236/+subscriptions -- Mailing list: https://launchpad.net/~sts-sponsors Post to : [email protected] Unsubscribe : https://launchpad.net/~sts-sponsors More help : https://help.launchpad.net/ListHelp

