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:
parent
184727408a
commit
05e84f2a7c
@ -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: "
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user