home: hub: mkinitfs

Download patch

ref: 4ab4340f14a1882c486f41c34ed6e016d090b506
parent: 3c1c36468c1a3ea80b8f488e780a0cfe2ca470d2
author: Timo Teräs <timo.teras@iki.fi>
date: Tue Dec 22 08:03:37 CST 2015

init: fix grep to refer to the securetty file

otherwise it hangs waiting input from stdin

--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -142,7 +142,7 @@
 			echo "$tty::respawn:/sbin/getty $line $speed $tty $term" \
 				>> $sysroot/etc/inittab
 		fi
-		if [ -e "$sysroot"/etc/securetty ] && ! grep -q -w "$tty"; then
+		if [ -e "$sysroot"/etc/securetty ] && ! grep -q -w "$tty" "$sysroot"/etc/securetty; then
 			echo "$tty" >> "$sysroot"/etc/securetty
 		fi
 	done