mirror of
https://github.com/xcat2/confluent.git
synced 2026-09-09 22:46:45 +00:00
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.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user