diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2021-01-03 13:49:09 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-01-04 14:48:29 -0800 |
commit | 419f7e31f5d03d1be59fb31a5821fe47bab91312 (patch) | |
tree | 6b8ea8aeaccfa3a310132bcce88d1ed38a23438d /meta-initramfs | |
parent | 2a3d72e58fb7c563222c0afd64b18ba764775bc0 (diff) | |
download | meta-openembedded-419f7e31f5d03d1be59fb31a5821fe47bab91312.tar.gz |
dracut: upgrade 049 -> 051
Drop the following patches which have been merged upstream:
0001-dracut.sh-improve-udevdir.patch
0001-set-viriable-_drv-not-local.patch
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-initramfs')
3 files changed, 2 insertions, 113 deletions
diff --git a/meta-initramfs/recipes-devtools/dracut/dracut/0001-dracut.sh-improve-udevdir.patch b/meta-initramfs/recipes-devtools/dracut/dracut/0001-dracut.sh-improve-udevdir.patch deleted file mode 100644 index 06e0a094f9..0000000000 --- a/meta-initramfs/recipes-devtools/dracut/dracut/0001-dracut.sh-improve-udevdir.patch +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | From 974f728410052bc8fa18d93dc0c1a991bcdb96e6 Mon Sep 17 00:00:00 2001 | ||
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
3 | Date: Wed, 3 Apr 2019 15:24:47 +0800 | ||
4 | Subject: [PATCH] dracut.sh: improve udevdir | ||
5 | |||
6 | In commit [9d1b81c dracut.sh: improve udevdir and systemdutildir | ||
7 | fallback logic], it checked a common binary `collect' to localte | ||
8 | udevdir. | ||
9 | |||
10 | But upstream systemd drop binary `collect'. | ||
11 | [https://github.com/systemd/systemd/commit/a168792c2d95695fd30c0371d4b3890a9df1eafb] | ||
12 | |||
13 | So check binary `ata_id' to instead. | ||
14 | |||
15 | Upstream-Status: Submitted [https://github.com/dracutdevs/dracut/pull/558] | ||
16 | |||
17 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
18 | --- | ||
19 | dracut.sh | 4 ++-- | ||
20 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
21 | |||
22 | diff --git a/dracut.sh b/dracut.sh | ||
23 | index 3dc2adc..cc8b01a 100755 | ||
24 | --- a/dracut.sh | ||
25 | +++ b/dracut.sh | ||
26 | @@ -1311,8 +1311,8 @@ done | ||
27 | [[ -d $udevdir ]] \ | ||
28 | || udevdir="$(pkg-config udev --variable=udevdir 2>/dev/null)" | ||
29 | if ! [[ -d "$udevdir" ]]; then | ||
30 | - [[ -e /lib/udev/collect ]] && udevdir=/lib/udev | ||
31 | - [[ -e /usr/lib/udev/collect ]] && udevdir=/usr/lib/udev | ||
32 | + [[ -e /lib/udev/ata_id ]] && udevdir=/lib/udev | ||
33 | + [[ -e /usr/lib/udev/ata_id ]] && udevdir=/usr/lib/udev | ||
34 | fi | ||
35 | |||
36 | [[ -d $systemdutildir ]] \ | ||
37 | -- | ||
38 | 2.7.4 | ||
39 | |||
diff --git a/meta-initramfs/recipes-devtools/dracut/dracut/0001-set-viriable-_drv-not-local.patch b/meta-initramfs/recipes-devtools/dracut/dracut/0001-set-viriable-_drv-not-local.patch deleted file mode 100644 index 13d2cfa877..0000000000 --- a/meta-initramfs/recipes-devtools/dracut/dracut/0001-set-viriable-_drv-not-local.patch +++ /dev/null | |||
@@ -1,69 +0,0 @@ | |||
1 | From 6e0da103effe64832eea52fad5c44a328f7141b7 Mon Sep 17 00:00:00 2001 | ||
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
3 | Date: Thu, 20 Jun 2019 17:31:11 +0800 | ||
4 | Subject: [PATCH] set viriable _drv not local | ||
5 | |||
6 | If shebang is set to /bin/sh and /bin/sh is a symlink to /bin/bash, | ||
7 | bash turn on posix mode. | ||
8 | |||
9 | Since bash is upgraded to 5.0, it follows 'IEEE 1003.2 POSIX Shell | ||
10 | Standard', to implement 'functions do not have local traps or options, | ||
11 | and it is not possible to define local variables' | ||
12 | |||
13 | For more detail, see variables.c:push_posix_temp_var in the following commit | ||
14 | http://git.savannah.gnu.org/cgit/bash.git/commit/?id=d233b485e83c3a784b803fb894280773f16f2deb | ||
15 | |||
16 | The IEEE 1003.2 POSIX Shell Standard: | ||
17 | https://www.cs.ait.ac.th/~on/O/oreilly/unix/ksh/appa_02.htm | ||
18 | |||
19 | While /bin/sh points to bash 5.0, it caused the following issue: | ||
20 | |||
21 | $ cat <<ENDOF>case.sh | ||
22 | fsck_drv_com(){ | ||
23 | echo "issuing \$_drv" | ||
24 | } | ||
25 | |||
26 | fsck_able() { | ||
27 | _drv="_drv=e2fsck fsck_drv_com" | ||
28 | } | ||
29 | |||
30 | fsck_single() { | ||
31 | local _drv | ||
32 | fsck_able | ||
33 | eval "\$_drv" | ||
34 | } | ||
35 | fsck_single | ||
36 | ENDOF | ||
37 | $ chmod a+x case.sh | ||
38 | |||
39 | Unexpected: | ||
40 | $ ./cash.sh | ||
41 | issuing _drv=e2fsck fsck_drv_com | ||
42 | |||
43 | Set viriable _drv not local, get expected result: | ||
44 | $ ./case.sh | ||
45 | issuing e2fsck | ||
46 | |||
47 | Upstream-Status: Submitted [https://github.com/dracutdevs/dracut/pull/587] | ||
48 | |||
49 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
50 | --- | ||
51 | modules.d/99fs-lib/fs-lib.sh | 2 +- | ||
52 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
53 | |||
54 | diff --git a/modules.d/99fs-lib/fs-lib.sh b/modules.d/99fs-lib/fs-lib.sh | ||
55 | index d39ca1b..60877ee 100755 | ||
56 | --- a/modules.d/99fs-lib/fs-lib.sh | ||
57 | +++ b/modules.d/99fs-lib/fs-lib.sh | ||
58 | @@ -142,7 +142,7 @@ fsck_single() { | ||
59 | local _fs="${2:-auto}" | ||
60 | local _fsopts="$3" | ||
61 | local _fop="$4" | ||
62 | - local _drv | ||
63 | + _drv="" | ||
64 | |||
65 | [ $# -lt 2 ] && return 255 | ||
66 | # if UUID= marks more than one device, take only the first one | ||
67 | -- | ||
68 | 2.7.4 | ||
69 | |||
diff --git a/meta-initramfs/recipes-devtools/dracut/dracut_git.bb b/meta-initramfs/recipes-devtools/dracut/dracut_git.bb index 13cf5f6ded..ce975f5a14 100644 --- a/meta-initramfs/recipes-devtools/dracut/dracut_git.bb +++ b/meta-initramfs/recipes-devtools/dracut/dracut_git.bb | |||
@@ -6,14 +6,11 @@ LICENSE = "GPLv2" | |||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
7 | 7 | ||
8 | PE = "1" | 8 | PE = "1" |
9 | PV = "049" | 9 | PV = "051" |
10 | 10 | ||
11 | # v048 tag | 11 | SRCREV = "e473057ae1de303340dec297c786c4a701cc61bd" |
12 | SRCREV = "225e4b94cbdb702cf512490dcd2ad9ca5f5b22c1" | ||
13 | SRC_URI = "git://git.kernel.org/pub/scm/boot/dracut/dracut.git;protocol=http \ | 12 | SRC_URI = "git://git.kernel.org/pub/scm/boot/dracut/dracut.git;protocol=http \ |
14 | file://0001-util.h-include-sys-reg.h-when-libc-glibc.patch \ | 13 | file://0001-util.h-include-sys-reg.h-when-libc-glibc.patch \ |
15 | file://0001-dracut.sh-improve-udevdir.patch \ | ||
16 | file://0001-set-viriable-_drv-not-local.patch \ | ||
17 | " | 14 | " |
18 | 15 | ||
19 | DEPENDS += "kmod" | 16 | DEPENDS += "kmod" |