2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-09-21 08:33:23 +00:00

Remove nuisance autoncons output when empty

If no serial console detected, don't bother mentioning it.
This commit is contained in:
Jarrod Johnson
2026-07-09 14:22:12 -04:00
parent beab5cd791
commit 263953fc1e
5 changed files with 15 additions and 5 deletions
@@ -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: "
@@ -39,7 +39,9 @@ echo sshd:x:30:30:SSH User:/var/empty/sshd:/sbin/nologin >> /etc/passwd
if ! grep console= /proc/cmdline >& /dev/null; then
autocons=$(/opt/confluent/bin/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: "
@@ -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: "
@@ -40,7 +40,9 @@ echo sshd:x:30:30:SSH User:/var/empty/sshd:/sbin/nologin >> /etc/passwd
if ! grep console= /proc/cmdline >& /dev/null; then
autocons=$(/opt/confluent/bin/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: "
@@ -55,7 +55,9 @@ get_remote_apikey() {
if ! grep console= /proc/cmdline > /dev/null; then
autocons=$(/opt/confluent/bin/autocons)
autocons=${autocons##*/}
echo "Automatic console configured for $autocons"
if [ ! -z "$autocons" ]; then
echo "Automatic console configured for $autocons"
fi
fi
echo sshd:x:30:30:SSH User:/var/empty/sshd:/sbin/nologin >> /etc/passwd
modprobe ib_ipoib