mirror of
https://github.com/xcat2/confluent.git
synced 2025-09-03 08:48:29 +00:00
Only start ssh if requested on cmdline
This commit is contained in:
@@ -42,7 +42,9 @@ if ! grep console= /proc/cmdline >& /dev/null; then
|
||||
autocons=$(/opt/confluent/bin/autocons)
|
||||
autoconsdev=${autocons%,*}
|
||||
autocons=${autocons##*/}
|
||||
echo "Automatic console configured for $autocons"
|
||||
if [ ! -z "$autocons" ]; then
|
||||
echo "Automatic console configured for $autocons"
|
||||
fi
|
||||
fi
|
||||
echo "Initializing confluent diskless environment"
|
||||
echo -n "udevd: "
|
||||
@@ -310,7 +312,10 @@ for pubkey in /etc/ssh/ssh_host*key.pub; do
|
||||
fi
|
||||
echo HostKey $privfile >> /etc/ssh/sshd_config
|
||||
done
|
||||
/usr/sbin/sshd
|
||||
if grep "debugssh" /proc/cmdline > /dev/null; then
|
||||
/usr/sbin/sshd
|
||||
fi
|
||||
echo "done"
|
||||
confluent_profile=$(grep ^profile: /etc/confluent/confluent.deploycfg| awk '{print $2}')
|
||||
confluent_proto=$(grep ^protocol: /etc/confluent/confluent.deploycfg| awk '{print $2}')
|
||||
confluent_urls=""
|
||||
|
@@ -7,6 +7,7 @@ dracut_install curl openssl tar cpio gzip lsmod ethtool xz lsmod ethtool
|
||||
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 /usr/libexec/openssh/sshd-session
|
||||
dracut_install efibootmgr uuidgen
|
||||
dracut_install du df ssh-keygen scp
|
||||
dracut_install /lib64/libnss_dns*
|
||||
|
Reference in New Issue
Block a user