2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-03-12 15:16:54 +00:00

Fix double-console out in genesis

With fixed autocons,
genesis was double outputting to serial console.

Let rungenesis pick
the console instead.
This commit is contained in:
Jarrod Johnson 2020-10-14 16:49:10 -04:00
parent 184727408a
commit 05e84f2a7c
2 changed files with 7 additions and 1 deletions

View File

@ -9,8 +9,11 @@ if ! grep console= /proc/cmdline >& /dev/null; then
if [ ! -z "$autocons" ]; then
echo "Using $(cat /tmp/01-autocons.conf)"
tmux a <> $autocons >&0 2>&1 &
else
tmux a <> /dev/console >&0 2>&1 &
fi
else
tmux a <> /dev/console >&0 2>&1 &
tmux a <> /dev/tty1 >&0 2>&1 &
fi
echo -n "udevd: "

View File

@ -10,4 +10,7 @@ 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 new-session sh /opt/confluent/bin/rungenesis
tmux new-session -d sh /opt/confluent/bin/rungenesis
while :; do
sleep 86400
done