From 36da40325a76cfd7c10ed280e38d726232b86de1 Mon Sep 17 00:00:00 2001 From: Manuel Mendez Date: Tue, 25 Apr 2017 10:16:19 -0400 Subject: init: add flow control to getty if present in kernel cmdline --- initramfs-init.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'initramfs-init.in') diff --git a/initramfs-init.in b/initramfs-init.in index 1293ef4..9568a59 100755 --- a/initramfs-init.in +++ b/initramfs-init.in @@ -132,7 +132,7 @@ setup_inittab_console(){ if ! grep -q "^$tty:" $sysroot/etc/inittab; then echo "# enable login on alternative console" \ >> $sysroot/etc/inittab - echo "$tty::respawn:/sbin/getty $line $speed $tty $term" \ + echo "$tty::respawn:/sbin/getty ${flow:+-h }$line $speed $tty $term" \ >> $sysroot/etc/inittab fi if [ -e "$sysroot"/etc/securetty ] && ! grep -q -w "$tty" "$sysroot"/etc/securetty; then -- cgit v1.2.3