Commit 0798b2a3 authored by Natanael Copa's avatar Natanael Copa

main/mkinitfs: initramfs fix

parent 1627440c
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
......@@ -2,7 +2,7 @@
pkgname=mkinitfs
pkgver=3.0.1
_ver=${pkgver%_git*}
pkgrel=0
pkgrel=1
pkgdesc="Tool to generate initramfs images for Alpine"
url="http://git.alpinelinux.org/cgit/mkinitfs"
makedepends="kmod-dev util-linux-dev cryptsetup-dev linux-headers"
......@@ -10,6 +10,7 @@ depends="acct busybox apk-tools>=2.0 lddtree>=1.25"
install="$pkgname.pre-upgrade $pkgname.post-install $pkgname.post-upgrade"
triggers="$pkgname.trigger=/usr/share/kernel/*"
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$_ver.tar.xz
0001-init-fix-grep-to-refer-to-the-securetty-file.patch
"
arch="all"
license="GPL2"
......@@ -35,6 +36,9 @@ package() {
cd "$_builddir"
make install DESTDIR="$pkgdir" || return 1
}
md5sums="4df6d56c154d9752c475055037de1fc0 mkinitfs-3.0.1.tar.xz"
sha256sums="06c828525fdc25dde4d3b558f3351a97de1df396020d5d30ee520ed2894b7bea mkinitfs-3.0.1.tar.xz"
sha512sums="4b3566b63b74eecca9d09c7c0cdc4d0217a272a6b1ef08c1e798b1f14f8de0de791d4ba0f03901affb5c08d52b2907eae9fc2706e51860850ff932261d0e7662 mkinitfs-3.0.1.tar.xz"
md5sums="4df6d56c154d9752c475055037de1fc0 mkinitfs-3.0.1.tar.xz
9008a4762c17bf5adb45c6a73a1af043 0001-init-fix-grep-to-refer-to-the-securetty-file.patch"
sha256sums="06c828525fdc25dde4d3b558f3351a97de1df396020d5d30ee520ed2894b7bea mkinitfs-3.0.1.tar.xz
1ed024fd8a7f9481380a6d1a7be0358f56365a0cc1d73161526f3e19261c516f 0001-init-fix-grep-to-refer-to-the-securetty-file.patch"
sha512sums="4b3566b63b74eecca9d09c7c0cdc4d0217a272a6b1ef08c1e798b1f14f8de0de791d4ba0f03901affb5c08d52b2907eae9fc2706e51860850ff932261d0e7662 mkinitfs-3.0.1.tar.xz
359f745689ef0514b6849cc4d7a14c97efc736066fbbbf58eebfb95182c39292e6e695b465672edc1db5abf9aeee1880d8a651b420a9a2f354203b2d368e7ab3 0001-init-fix-grep-to-refer-to-the-securetty-file.patch"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment