diff --git a/confluent_osdeploy/genesis/initramfs/opt/confluent/bin/rungenesis b/confluent_osdeploy/genesis/initramfs/opt/confluent/bin/rungenesis index d2abe094..4a6d9a42 100644 --- a/confluent_osdeploy/genesis/initramfs/opt/confluent/bin/rungenesis +++ b/confluent_osdeploy/genesis/initramfs/opt/confluent/bin/rungenesis @@ -1,4 +1,5 @@ #!/bin/bash +export LANG=en_US.utf8 mkdir -p /etc/confluent /usr/lib/systemd/systemd-udevd --daemon udevadm trigger @@ -25,6 +26,7 @@ else fi (ssh-keygen -A; /usr/sbin/sshd) & TRIES=0 +touch /etc/confluent/confluent.info while ! grep ^EXTMGRINFO: /etc/confluent/confluent.info | awk -F'|' '{print $3}' | grep 1 >& /dev/null && [ "$TRIES" -lt 15 ]; do TRIES=$((TRIES + 1)) cd /sys/class/net diff --git a/confluent_osdeploy/genesis/initramfs/usr/lib/dracut/hooks/cmdline/10-genesis.sh b/confluent_osdeploy/genesis/initramfs/usr/lib/dracut/hooks/cmdline/10-genesis.sh index c252e7c6..fa7744c2 100644 --- a/confluent_osdeploy/genesis/initramfs/usr/lib/dracut/hooks/cmdline/10-genesis.sh +++ b/confluent_osdeploy/genesis/initramfs/usr/lib/dracut/hooks/cmdline/10-genesis.sh @@ -10,4 +10,4 @@ mkdir -p /var/empty/sshd sed -i '/^root:x/d' /etc/passwd echo root:x:0:0::/:/bin/bash >> /etc/passwd echo sshd:x:30:30:SSH User:/var/empty/sshd:/sbin/nologin >> /etc/passwd -tmux -L console new-sessiod /opt/confluent/bin/rungenesis +tmux new-session sh /opt/confluent/bin/rungenesis