2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-09-04 12:07:58 +00:00

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.
This commit is contained in:
Markus Hilger
2026-07-16 18:57:14 +02:00
parent a0995b63ba
commit e1a066bf49
+7 -2
View File
@@ -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')