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:
+7
-2
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user