aboutsummaryrefslogtreecommitdiffstats
path: root/main/mkinitfs/0001-init-fix-grep-to-refer-to-the-securetty-file.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-01-05 14:50:01 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-01-05 14:51:18 +0000
commit0798b2a34e3d7f0e063cb2a5bc117527bd4b1f99 (patch)
treec204bd879d286726ae51ab04bd39a0a9ef057d78 /main/mkinitfs/0001-init-fix-grep-to-refer-to-the-securetty-file.patch
parent1627440c892b7aec96051cd1736f627c5cbd67e1 (diff)
downloadaports-0798b2a34e3d7f0e063cb2a5bc117527bd4b1f99.tar.bz2
aports-0798b2a34e3d7f0e063cb2a5bc117527bd4b1f99.tar.xz
main/mkinitfs: initramfs fix
Diffstat (limited to 'main/mkinitfs/0001-init-fix-grep-to-refer-to-the-securetty-file.patch')
-rw-r--r--main/mkinitfs/0001-init-fix-grep-to-refer-to-the-securetty-file.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/main/mkinitfs/0001-init-fix-grep-to-refer-to-the-securetty-file.patch b/main/mkinitfs/0001-init-fix-grep-to-refer-to-the-securetty-file.patch
new file mode 100644
index 0000000000..927b27c653
--- /dev/null
+++ b/main/mkinitfs/0001-init-fix-grep-to-refer-to-the-securetty-file.patch
@@ -0,0 +1,26 @@
+From 4ab4340f14a1882c486f41c34ed6e016d090b506 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Timo=20Ter=C3=A4s?= <timo.teras@iki.fi>
+Date: Tue, 22 Dec 2015 14:03:37 +0200
+Subject: [PATCH] init: fix grep to refer to the securetty file
+
+otherwise it hangs waiting input from stdin
+---
+ initramfs-init.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+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
+--
+2.6.4
+