aboutsummaryrefslogtreecommitdiffstats
path: root/initramfs-init.in
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2015-12-22 14:03:37 +0200
committerTimo Teräs <timo.teras@iki.fi>2015-12-22 14:03:37 +0200
commit4ab4340f14a1882c486f41c34ed6e016d090b506 (patch)
treec677e46a871bfc71206108653da6cd414fc9530a /initramfs-init.in
parent3c1c36468c1a3ea80b8f488e780a0cfe2ca470d2 (diff)
downloadmkinitfs-4ab4340f14a1882c486f41c34ed6e016d090b506.tar.bz2
mkinitfs-4ab4340f14a1882c486f41c34ed6e016d090b506.tar.xz
init: fix grep to refer to the securetty file
otherwise it hangs waiting input from stdin
Diffstat (limited to 'initramfs-init.in')
-rwxr-xr-xinitramfs-init.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/initramfs-init.in b/initramfs-init.in
index e9155e0..ca115e9 100755
--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -142,7 +142,7 @@ setup_inittab_console(){
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