]> TLD Linux GIT Repositories - packages/dracut.git/commitdiff
- bash 5 fixes
authorMarcin Krol <hawk@tld-linux.org>
Thu, 5 Sep 2019 22:58:11 +0000 (00:58 +0200)
committerMarcin Krol <hawk@tld-linux.org>
Thu, 5 Sep 2019 22:58:11 +0000 (00:58 +0200)
bash-5.patch [new file with mode: 0644]
dracut.spec

diff --git a/bash-5.patch b/bash-5.patch
new file mode 100644 (file)
index 0000000..1f8f29c
--- /dev/null
@@ -0,0 +1,57 @@
+diff --git a/modules.d/99fs-lib/fs-lib.sh b/modules.d/99fs-lib/fs-lib.sh
+index d39ca1b7..8dbc8b3c 100755
+--- ./modules.d/99fs-lib/fs-lib.sh
++++ ./modules.d/99fs-lib/fs-lib.sh
+@@ -44,22 +44,22 @@ fsck_able() {
+             ;;
+         ext?)
+             type e2fsck >/dev/null 2>&1 &&
+-            _drv="_drv=e2fsck fsck_drv_com" &&
++            _drv="_drv=e2fsck fsck_drv_com e2fsck" &&
+             return 0
+             ;;
+         f2fs)
+           type fsck.f2fs >/dev/null 2>&1 &&
+-          _drv="_drv=fsck.f2fs fsck_drv_com" &&
++          _drv="_drv=fsck.f2fs fsck_drv_com fsck.f2fs" &&
+           return 0
+           ;;
+         jfs)
+             type jfs_fsck >/dev/null 2>&1 &&
+-            _drv="_drv=jfs_fsck fsck_drv_com" &&
++            _drv="_drv=jfs_fsck fsck_drv_com jfs_fsck" &&
+             return 0
+             ;;
+         reiserfs)
+             type reiserfsck >/dev/null 2>&1 &&
+-            _drv="_drv=reiserfsck fsck_drv_com" &&
++            _drv="_drv=reiserfsck fsck_drv_com reiserfsck" &&
+             return 0
+             ;;
+         btrfs)
+@@ -75,7 +75,7 @@ fsck_able() {
+             ;;
+         *)
+             type fsck >/dev/null 2>&1 &&
+-            _drv="_drv=fsck fsck_drv_std" &&
++            _drv="_drv=fsck fsck_drv_std fsck" &&
+             return 0
+             ;;
+     esac
+@@ -99,6 +99,7 @@ fsck_drv_btrfs() {
+ fsck_drv_com() {
+     local _ret
+     local _out
++    local _drv=$1
+     if ! strglobin "$_fop" "-[ynap]"; then
+         _fop="-a ${_fop}"
+@@ -177,7 +178,7 @@ fsck_batch() {
+     _out="$(fsck -M -T "$@" -- -a)"
+     _ret=$?
+-    fsck_tail
++    _drv=$_drv fsck_tail
+     return $_ret
+ }
index 971cb0cd6cad69c135af98c859d8451d7b85acf6..1b173c2b4905d77fc2c1260756b75a0bb461135e 100644 (file)
@@ -2,7 +2,7 @@ Summary:        Initramfs generator using udev
 Summary(pl.UTF-8):     Generator initramfs wykorzystujący udev
 Name:          dracut
 Version:       048
-Release:       1
+Release:       2
 License:       GPL v2+
 Group:         Base
 Source0:       https://www.kernel.org/pub/linux/utils/boot/dracut/%{name}-%{version}.tar.xz
@@ -17,6 +17,7 @@ Patch5:               proc_sys_remount.patch
 Patch6:                misc_fixes.patch
 Patch7:                initrd-release.patch
 Patch8:                crypttab-keyscript.patch
+Patch9:                bash-5.patch
 Patch100:      no_systemd.patch
 URL:           https://dracut.wiki.kernel.org/
 BuildRequires: asciidoc
@@ -185,6 +186,7 @@ Bashowe dopełnianie składni dla polecenia dracut.
 %patch6 -p1
 %patch7 -p1
 %patch8 -p1
+%patch9 -p1
 
 %patch100 -p1