From d7a25a99336954583dce95fe96609566810e89df Mon Sep 17 00:00:00 2001 From: Markus Hilger Date: Mon, 7 Sep 2026 06:42:08 +0200 Subject: [PATCH] Use dhcpcd for SUSE 16 diskless SLES 16 ships no ISC dhclient and nothing provides dhcp-client, so the image could not be built from SLES media at all. Leap carries dhcpcd too, so one client covers both. el10 made the same move when RHEL dropped dhclient. --- .../var/lib/dracut/hooks/cmdline/10-confluentdiskless.sh | 2 +- imgutil/suse16/dracut/install | 2 +- imgutil/suse16/pkglist | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/confluent_osdeploy/suse16-diskless/initramfs/var/lib/dracut/hooks/cmdline/10-confluentdiskless.sh b/confluent_osdeploy/suse16-diskless/initramfs/var/lib/dracut/hooks/cmdline/10-confluentdiskless.sh index e4f9c0f3..a2ff4cab 100644 --- a/confluent_osdeploy/suse16-diskless/initramfs/var/lib/dracut/hooks/cmdline/10-confluentdiskless.sh +++ b/confluent_osdeploy/suse16-diskless/initramfs/var/lib/dracut/hooks/cmdline/10-confluentdiskless.sh @@ -218,7 +218,7 @@ fi autoconfigmethod=$(grep ipv4_method /etc/confluent/confluent.deploycfg |awk '{print $2}') if [ "$autoconfigmethod" = "dhcp" ]; then echo -n "Attempting to use dhcp to bring up $ifname..." - dhclient $ifname + dhcpcd $ifname echo "Complete:" ip addr show dev $ifname printf '\n[ipv4]\nmethod=auto\n' >> $nmcfg diff --git a/imgutil/suse16/dracut/install b/imgutil/suse16/dracut/install index 67819080..c7ffd755 100644 --- a/imgutil/suse16/dracut/install +++ b/imgutil/suse16/dracut/install @@ -8,7 +8,7 @@ dracut_install modprobe touch echo cut wc bash uniq grep ip hostname dracut_install awk egrep dirname expr sort dracut_install ssh sshd reboot parted mkfs mkfs.ext4 mkfs.xfs xfs_db mkswap dracut_install efibootmgr uuidgen -dracut_install du df ssh-keygen scp clear dhclient +dracut_install du df ssh-keygen scp clear dhcpcd dracut_install /lib64/libnss_dns.so.2 # glibc dropped the versioned name dracut_install /lib64/libnss_compat* dracut_install /usr/lib64/libnl-3.so.200 diff --git a/imgutil/suse16/pkglist b/imgutil/suse16/pkglist index 7fd474a6..1755ddde 100644 --- a/imgutil/suse16/pkglist +++ b/imgutil/suse16/pkglist @@ -7,7 +7,9 @@ tuned xfsprogs e2fsprogs chrony timezone net-tools rsync tar util-linux python3 tar dracut ethtool parted openssl bash rpm iputils lvm2 efibootmgr attr -dhcp-client +dhcpcd +# dhcp-client used to pull this in; the diskless hook needs ip regardless +iproute2 zypper libfuse2 openssh