Skip to content

Commit

Permalink
dracut: add fix for initrd not showing prompt when root device is loc…
Browse files Browse the repository at this point in the history
…ked (#10039) (#10066)
  • Loading branch information
trungams authored Aug 8, 2024
1 parent c841b33 commit 4ca9366
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
See issue: https://github.com/dracut-ng/dracut-ng/issues/492

This reverts commit 2339acfaeee60d6bb26a1103db2e53bc8f9cb2d1

Signed-off by: Thien Trung Vuong <[email protected]>
---
modules.d/90crypt/parse-crypt.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules.d/90crypt/parse-crypt.sh b/modules.d/90crypt/parse-crypt.sh
index 9567a4a9..e46e347a 100755
--- a/modules.d/90crypt/parse-crypt.sh
+++ b/modules.d/90crypt/parse-crypt.sh
@@ -174,7 +174,7 @@ else
} >> "$hookdir/emergency/90-crypt.sh"
fi
done
- elif getargbool 1 rd.auto; then
+ elif getargbool 0 rd.auto; then
if [ -z "$DRACUT_SYSTEMD" ]; then
{
printf -- 'ENV{ID_FS_TYPE}=="crypto_LUKS", RUN+="%s ' "$(command -v initqueue)"
--
2.42.0

6 changes: 5 additions & 1 deletion SPECS/dracut/dracut.spec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Summary: dracut to create initramfs
Name: dracut
Version: 102
Release: 1%{?dist}
Release: 2%{?dist}
# The entire source code is GPLv2+
# except install/* which is LGPLv2+
License: GPLv2+ AND LGPLv2+
Expand Down Expand Up @@ -34,6 +34,7 @@ Patch: 0006-dracut.sh-validate-instmods-calls.patch
Patch: 0007-feat-dracut.sh-support-multiple-config-dirs.patch
Patch: 0011-Remove-reference-to-kernel-module-zlib-in-fips-module.patch
Patch: 0012-fix-dracut-functions-avoid-awk-in-get_maj_min.patch
Patch: 0013-revert-fix-crypt-unlock-encrypted-devices-by-default.patch

BuildRequires: bash
BuildRequires: kmod-devel
Expand Down Expand Up @@ -276,6 +277,9 @@ ln -srv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_sbindir}/%{name}
%dir %{_sharedstatedir}/%{name}/overlay

%changelog
* Tue Aug 06 2024 Thien Trung Vuong <[email protected]> - 102-2
- Add fix for initrd not showing prompt when root device is locked

* Tue Jun 25 2024 Cameron Baird <[email protected]> - 102-1
- Update to 102

Expand Down

0 comments on commit 4ca9366

Please sign in to comment.