]> git.pld-linux.org Git - packages/dracut.git/commitdiff
- bash is *required* for dracut initramfs to work correctly, rel 3 auto/th/dracut-055-3
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 30 Oct 2021 21:21:06 +0000 (23:21 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 30 Oct 2021 21:21:06 +0000 (23:21 +0200)
If /bin/sh is not bash then dracut initramfs is unable to grok encrypted partitions.

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

diff --git a/bash.patch b/bash.patch
new file mode 100644 (file)
index 0000000..e51aae7
--- /dev/null
@@ -0,0 +1,10 @@
+--- dracut-055/modules.d/00bash/module-setup.sh~       2021-05-27 14:34:19.000000000 +0200
++++ dracut-055/modules.d/00bash/module-setup.sh        2021-10-30 23:03:00.931687353 +0200
+@@ -27,6 +27,6 @@
+     inst /bin/bash
+     # Prefer bash as default shell if no other shell is preferred.
+-    [[ -L $initdir/bin/sh ]] || ln -sf bash "${initdir}/bin/sh"
++    ln -sf bash "${initdir}/bin/sh"
+ }
index c9484a0df756dfc43a49f56f73a11f80d00bc58f..4384e98bca109e25b92585a475e289f47f9bcd33 100644 (file)
@@ -2,7 +2,7 @@ Summary:        Initramfs generator using udev
 Summary(pl.UTF-8):     Generator initramfs wykorzystujący udev
 Name:          dracut
 Version:       055
-Release:       2
+Release:       3
 License:       GPL v2+
 Group:         Base
 Source0:       https://www.kernel.org/pub/linux/utils/boot/dracut/%{name}-%{version}.tar.xz
@@ -13,6 +13,7 @@ Patch1:               os-release.patch
 Patch2:                arch-libdir.patch
 Patch3:                systemd-paths.patch
 Patch4:                cryptsetup.patch
+Patch5:                bash.patch
 URL:           https://dracut.wiki.kernel.org/
 BuildRequires: asciidoc
 BuildRequires: dash
@@ -185,6 +186,7 @@ Bashowe dopełnianie składni dla polecenia dracut.
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 %{__sed} -i -e 's,@libexecdir@,%{_libexecdir},g' modules.d/50plymouth/module-setup.sh
 %{__sed} -i -e 's,@lib@,%{_lib},g' modules.d/95resume/module-setup.sh
This page took 0.031916 seconds and 4 git commands to generate.