From e1a066bf49671a3048cf7265e948e9337becdbce Mon Sep 17 00:00:00 2001 From: Markus Hilger Date: Thu, 16 Jul 2026 18:57:14 +0200 Subject: [PATCH] Use dhcpcd for EL10 capture prerequisites EL10 diskless networking uses dhcpcd and no longer dhclient and ipcalc. Keep the existing dhclient and ipcalc requirements for older EL capture targets. --- imgutil/imgutil | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/imgutil/imgutil b/imgutil/imgutil index 28f9e4c5..177e3495 100644 --- a/imgutil/imgutil +++ b/imgutil/imgutil @@ -773,9 +773,14 @@ class ElHandler(OsHandler): lfuses = glob.glob(os.path.join(hostpath, '/usr/lib64/libfuse.so.2')) if not lfuses: needpkgs.append('fuse-libs') - if not os.path.exists(os.path.join(hostpath, '/usr/bin/ipcalc')): + if (self.oscategory != 'el10' and + not os.path.exists(os.path.join(hostpath, '/usr/bin/ipcalc'))): needpkgs.append('ipcalc') - if not os.path.exists(os.path.join(hostpath, 'usr/sbin/dhclient')): + if (self.oscategory == 'el10' and + not os.path.exists(os.path.join(hostpath, 'usr/sbin/dhcpcd'))): + needpkgs.append('dhcpcd') + elif (self.oscategory != 'el10' and + not os.path.exists(os.path.join(hostpath, 'usr/sbin/dhclient'))): needpkgs.append('dhcp-client') if not os.path.exists(os.path.join(hostpath, 'usr/sbin/mount.nfs')): needpkgs.append('nfs-utils')