Skip to content

Commit d585585

Browse files
committed
guestfs: debian: ensure dhcpcd-base runtime dependency
After updating kdevops CI Debian testing server from Debian trixie -> forky, virt-builder was unable (again) to bring up a guest with network capabilities. Error can be replicated with: sudo virt-builder debian-12 --install sudo ... + rm -f /etc/dhcp/dhclient-enter-hooks.d/resolved + '[' -L /etc/resolv.conf ']' + dhclient --version + dhcpcd eth0 /init: line 140: dhcpcd: command not found + mdadm -As --auto=yes --no-degraded mdadm: --auto is deprecated and will be removed in future releases. mdadm: No arrays found in config file or automatically ... When libguestfs-tools are installed, we need to ensure both isc-dhcp-client and dhcpd-base packages are installed as explained in commit 53d1d15 ("guestfs: bringup: fix debian networking issue"). This, ensures both packages are installed, allowing virt-builder to find the right tools in both Debian distros. Runtime dependency list: apt-cache depends libguestfs-tools libguestfs-tools Depends: libguestfs0t64 Depends: libc6 Depends: guestfs-tools Depends: guestmount Depends: guestfish Breaks: guestfish Breaks: guestmount Breaks: libguestfs0t64 Replaces: guestfish Replaces: guestmount Replaces: libguestfs0t6 apt-cache depends libguestfs0t64 | grep -C 2 dhcp Depends: cryptsetup-bin Depends: dash |Depends: dhcpcd-base Depends: isc-dhcp-client Depends: diffutils Depends: dosfstools Signed-off-by: Daniel Gomez <[email protected]>
1 parent a0bee0b commit d585585

File tree

1 file changed

+1
-0
lines changed
  • playbooks/roles/guestfs/tasks/install-deps/debian

1 file changed

+1
-0
lines changed

playbooks/roles/guestfs/tasks/install-deps/debian/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
update_cache: true
1515
name:
1616
- libguestfs-tools
17+
- dhcpcd-base
1718
- isc-dhcp-client
1819
- python3-lxml
1920
- python3-libvirt

0 commit comments

Comments
 (0)