]> git.pld-linux.org Git - packages/dracut.git/commitdiff
Do not panic when LUKS password is not early enough auto/th/dracut-034-2
authorJacek Konieczny <jajcus@jajcus.net>
Sat, 11 Jan 2014 14:15:04 +0000 (15:15 +0100)
committerJacek Konieczny <jajcus@jajcus.net>
Sat, 11 Jan 2014 14:16:19 +0000 (15:16 +0100)
Fix from:
http://git.kernel.org/cgit/boot/dracut/dracut.git/commit/?id=7e4f74f5040fc3f4e7646695b54c5c11b0b95c62
http://git.kernel.org/cgit/boot/dracut/dracut.git/commit/?id=3934ca8e6c0e80ecb32a2ed9403321afd510842e

Problem described here:
https://bugzilla.redhat.com/show_bug.cgi?id=868421

Release: 2

dracut-luks_password_wait.patch [new file with mode: 0644]
dracut.spec

diff --git a/dracut-luks_password_wait.patch b/dracut-luks_password_wait.patch
new file mode 100644 (file)
index 0000000..0173bb2
--- /dev/null
@@ -0,0 +1,14 @@
+diff -dur dracut-034.orig/modules.d/98systemd/dracut-initqueue.sh dracut-034/modules.d/98systemd/dracut-initqueue.sh
+--- dracut-034.orig/modules.d/98systemd/dracut-initqueue.sh    2013-10-08 09:55:26.000000000 +0200
++++ dracut-034/modules.d/98systemd/dracut-initqueue.sh 2014-01-11 15:02:54.852353296 +0100
+@@ -52,6 +52,10 @@
+     # no more udev jobs and queues empty.
+     sleep 0.5
++    for i in /run/systemd/ask-password/ask.*; do
++        [ -e "$i" ] && continue 2
++    done
++
+     if [ $main_loop -gt $((2*$RDRETRY/3)) ]; then
+         for job in $hookdir/initqueue/timeout/*.sh; do
+             [ -e "$job" ] || break
index b9abbe185a16ba7df224a8e7d9fb5add57cfb3c5..cc6db62eaa7ed86657b8aef1ba2e0716779cff98 100644 (file)
@@ -2,7 +2,7 @@ Summary:        Initramfs generator using udev
 Summary(pl.UTF-8):     Generator initramfs wykorzystujący udev
 Name:          dracut
 Version:       034
-Release:       1
+Release:       2
 License:       GPL v2+
 Group:         Base
 Source0:       http://ftp.kernel.org/pub/linux/utils/boot/dracut/%{name}-%{version}.tar.xz
@@ -14,6 +14,7 @@ Patch3:               plymouth-logo.patch
 Patch4:                arch-libdir.patch
 Patch5:                systemd-paths.patch
 Patch6:                prelink-libs.patch
+Patch7:                dracut-luks_password_wait.patch
 URL:           https://dracut.wiki.kernel.org/
 BuildRequires: asciidoc
 BuildRequires: dash
@@ -194,6 +195,7 @@ Bashowe dopełnianie składni dla polecenia dracut.
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p1
 
 %{__sed} -i -e 's,@lib@,%{_lib},g' modules.d/50plymouth/module-setup.sh
 %{__sed} -i -e 's,@lib@,%{_lib},g' modules.d/95resume/module-setup.sh
This page took 0.104585 seconds and 4 git commands to generate.