Bugzilla – Bug 1215586
guestfs regression: non functional network due to missing sysconfig-netconfig
Last modified: 2024-01-11 22:59:39 UTC
At some point in the past, virt-builder and other tools had proper networking with-in the appliance. This still works by luck in SLE15, but it broke in Tumbleweed. The reason is the transformation of appliance/packagelist.in into /usr/lib64/guestfs/supermin.d/packages. During build the packagelist is passed to supermin, which writes the packages file. In case a package is unavailable during build, it will be missing from the packages file. Also 'systemd' is transformed into 'systemd-mini' (which is not really an issue because other packages require 'systemd'). In case of networking: if the host does not have 'dhcp-client' installed, the network will not start inside the appliance. Once dhcp-client gets installed, it will be put into the appliance. But the dhcp-client scripts expect a functional /sbin/netconfig, which is provided by sysconfig-netconfig. That package is listed in packagelist.in, but will not be written to packages because it is not in BuildRequires. I think most packages from packagelist.in are "lost" during build because they are not in BuildRequires, or because nothing requires them. It feels wrong to put each and every binary which is potentially called by guestfsd into BuildRequires. Instead the "packages" file should be overwritten manually with the list of packages which may be used, if it is installed on the host.
I think this can be solved with 'sort -u appliance/packagelist > %buildroot%_libdir/guestfs/supermin.d/packages' somewhere in %install.
(In reply to Olaf Hering from comment #1) > I think this can be solved with 'sort -u appliance/packagelist > > %buildroot%_libdir/guestfs/supermin.d/packages' somewhere in %install. I'll look into doing this. In the meantime, I've added sysconfig-netconfig to the BuildRequires for the quick fix.
This is an autogenerated message for OBS integration: This bug (1215586) was mentioned in https://build.opensuse.org/request/show/1113550 Factory / libguestfs
SUSE-RU-2023:4088-1: An update that has five fixes can now be installed. Category: recommended (moderate) Bug References: 1212972, 1215461, 1215543, 1215586, 1215664 Sources used: SUSE Linux Enterprise Micro 5.5 (src): libguestfs-1.48.6-150500.3.8.1 Server Applications Module 15-SP5 (src): libguestfs-1.48.6-150500.3.8.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Spec file updated.