1 |
commit: 41fe3ce6f1b34ad62c4672fc0146b2268b813711 |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 4 23:18:40 2022 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 4 23:28:47 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41fe3ce6 |
7 |
|
8 |
sys-kernel/dracut: add 057 |
9 |
|
10 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
11 |
|
12 |
sys-kernel/dracut/Manifest | 1 + |
13 |
.../{dracut-9999.ebuild => dracut-057.ebuild} | 8 ++-- |
14 |
sys-kernel/dracut/dracut-9999.ebuild | 7 ++-- |
15 |
.../dracut/files/057-virtiofs-split-usr.patch | 43 ++++++++++++++++++++++ |
16 |
4 files changed, 53 insertions(+), 6 deletions(-) |
17 |
|
18 |
diff --git a/sys-kernel/dracut/Manifest b/sys-kernel/dracut/Manifest |
19 |
index 8f585a4e1527..7633cae497de 100644 |
20 |
--- a/sys-kernel/dracut/Manifest |
21 |
+++ b/sys-kernel/dracut/Manifest |
22 |
@@ -1,3 +1,4 @@ |
23 |
DIST dracut-053.tar.xz 354668 BLAKE2B d20d0f1675e18cf44615a98255c8b1a73f23e9c665a771a1fe99716d3bf0b6082961ab20fe058bf31c106c4f521d9e8708e2ae98cff00f613197bbf9dd3abda3 SHA512 4736f84442bda208a38d3285ffeb8b845f06e52e3bf60d2aaea121240cf695e1369208c2d2cee1137a6c1d3f8f7794385675006beaf5cd86ade259d5f42d039a |
24 |
DIST dracut-055.tar.xz 361752 BLAKE2B 9fcb0bce9ead2e079c70a377ea53701e4634d3dc64ae163e0e157d7d85822a274813e05f6079768640e1807818fad7a8158626413d773686a8d52fcd95fb5680 SHA512 2d2ea2889d9013bc94245bd7d1a2154f24d02bd9c2f7dbb28e5968e17d918e6598c68d85b0f551f968218980a80b19361ca0c9e8e94997ba54f4c09afcd6d866 |
25 |
DIST dracut-056.tar.xz 384196 BLAKE2B e3e4fa3024b401cc954ba6069c54e95912691ff68a838e3c43bfc6a5b284bdee1669c782b30503c0246b7146c545ee8825febefcff93bae76ec46067cb7b87e1 SHA512 19268763e128984d20cab766bbdf2de12fe534ce2562fc688203099ef9b4cf83d0ccd2129499c70cdc6dd4ad53f0ffc2f3378eff5b8a15fda27c23b20f903df2 |
26 |
+DIST dracut-057.tar.gz 481345 BLAKE2B dcf663a1955753256866e9dfa318b0b46a132ea39223ab634d72af1611f7db394c23c1bb4326979a5ee919df6ce3b107c955c9c77ce1ec4f99de835352932901 SHA512 8acdc8db2233a9abbaeea218cc5b1be68c4985088995f42624750783f8d40ecbb7fa97ab4f6468f67c079c8418590ace317c143a92d9305640b48c7c0edd4089 |
27 |
|
28 |
diff --git a/sys-kernel/dracut/dracut-9999.ebuild b/sys-kernel/dracut/dracut-057.ebuild |
29 |
similarity index 94% |
30 |
copy from sys-kernel/dracut/dracut-9999.ebuild |
31 |
copy to sys-kernel/dracut/dracut-057.ebuild |
32 |
index 35a294f43e10..2e0def4acdca 100644 |
33 |
--- a/sys-kernel/dracut/dracut-9999.ebuild |
34 |
+++ b/sys-kernel/dracut/dracut-057.ebuild |
35 |
@@ -9,9 +9,10 @@ if [[ ${PV} == 9999 ]] ; then |
36 |
inherit git-r3 |
37 |
EGIT_REPO_URI="https://github.com/dracutdevs/dracut" |
38 |
else |
39 |
- [[ "${PV}" = *_rc* ]] || \ |
40 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" |
41 |
- SRC_URI="https://www.kernel.org/pub/linux/utils/boot/${PN}/${P}.tar.xz" |
42 |
+ if [[ "${PV}" != *_rc* ]]; then |
43 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" |
44 |
+ fi |
45 |
+ SRC_URI="https://github.com/dracutdevs/dracut/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" |
46 |
fi |
47 |
|
48 |
DESCRIPTION="Generic initramfs generation tool" |
49 |
@@ -61,6 +62,7 @@ QA_MULTILIB_PATHS="usr/lib/dracut/.*" |
50 |
|
51 |
PATCHES=( |
52 |
"${FILESDIR}"/gentoo-ldconfig-paths-r1.patch |
53 |
+ "${FILESDIR}"/057-virtiofs-split-usr.patch |
54 |
) |
55 |
|
56 |
src_configure() { |
57 |
|
58 |
diff --git a/sys-kernel/dracut/dracut-9999.ebuild b/sys-kernel/dracut/dracut-9999.ebuild |
59 |
index 35a294f43e10..3721fec06569 100644 |
60 |
--- a/sys-kernel/dracut/dracut-9999.ebuild |
61 |
+++ b/sys-kernel/dracut/dracut-9999.ebuild |
62 |
@@ -9,9 +9,10 @@ if [[ ${PV} == 9999 ]] ; then |
63 |
inherit git-r3 |
64 |
EGIT_REPO_URI="https://github.com/dracutdevs/dracut" |
65 |
else |
66 |
- [[ "${PV}" = *_rc* ]] || \ |
67 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" |
68 |
- SRC_URI="https://www.kernel.org/pub/linux/utils/boot/${PN}/${P}.tar.xz" |
69 |
+ if [[ "${PV}" != *_rc* ]]; then |
70 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" |
71 |
+ fi |
72 |
+ SRC_URI="https://github.com/dracutdevs/dracut/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" |
73 |
fi |
74 |
|
75 |
DESCRIPTION="Generic initramfs generation tool" |
76 |
|
77 |
diff --git a/sys-kernel/dracut/files/057-virtiofs-split-usr.patch b/sys-kernel/dracut/files/057-virtiofs-split-usr.patch |
78 |
new file mode 100644 |
79 |
index 000000000000..5bb51a9b3535 |
80 |
--- /dev/null |
81 |
+++ b/sys-kernel/dracut/files/057-virtiofs-split-usr.patch |
82 |
@@ -0,0 +1,43 @@ |
83 |
+From dd63cc0a25f9fb34a2f28306c06a668d66564463 Mon Sep 17 00:00:00 2001 |
84 |
+From: Mike Gilbert <floppym@g.o> |
85 |
+Date: Mon, 4 Jul 2022 19:08:45 -0400 |
86 |
+Subject: [PATCH] fix(virtiofs): make shebangs work on split-usr systems |
87 |
+ |
88 |
+Fixes: c29325a982013a315418cdb2318e90cf77e387b5 |
89 |
+Signed-off-by: Mike Gilbert <floppym@g.o> |
90 |
+--- |
91 |
+ modules.d/95virtiofs/module-setup.sh | 2 +- |
92 |
+ modules.d/95virtiofs/mount-virtiofs.sh | 2 +- |
93 |
+ modules.d/95virtiofs/parse-virtiofs.sh | 2 +- |
94 |
+ 3 files changed, 3 insertions(+), 3 deletions(-) |
95 |
+ |
96 |
+diff --git a/modules.d/95virtiofs/module-setup.sh b/modules.d/95virtiofs/module-setup.sh |
97 |
+index e5f209e0a..70c10584a 100755 |
98 |
+--- a/modules.d/95virtiofs/module-setup.sh |
99 |
++++ b/modules.d/95virtiofs/module-setup.sh |
100 |
+@@ -1,4 +1,4 @@ |
101 |
+-#!/usr/bin/bash |
102 |
++#!/bin/bash |
103 |
+ |
104 |
+ # called by dracut |
105 |
+ check() { |
106 |
+diff --git a/modules.d/95virtiofs/mount-virtiofs.sh b/modules.d/95virtiofs/mount-virtiofs.sh |
107 |
+index 507911cf5..c7e31d041 100755 |
108 |
+--- a/modules.d/95virtiofs/mount-virtiofs.sh |
109 |
++++ b/modules.d/95virtiofs/mount-virtiofs.sh |
110 |
+@@ -1,4 +1,4 @@ |
111 |
+-#!/usr/bin/sh |
112 |
++#!/bin/sh |
113 |
+ |
114 |
+ if [ "${fstype}" = "virtiofs" -o "${root%%:*}" = "virtiofs" ]; then |
115 |
+ if ! { modprobe virtiofs || strstr "$(cat /proc/filesystems)" virtiofs; }; then |
116 |
+diff --git a/modules.d/95virtiofs/parse-virtiofs.sh b/modules.d/95virtiofs/parse-virtiofs.sh |
117 |
+index 8b8cf760d..760e41385 100755 |
118 |
+--- a/modules.d/95virtiofs/parse-virtiofs.sh |
119 |
++++ b/modules.d/95virtiofs/parse-virtiofs.sh |
120 |
+@@ -1,4 +1,4 @@ |
121 |
+-#!/usr/bin/sh |
122 |
++#!/bin/sh |
123 |
+ # Accepted formats: |
124 |
+ # rootfstype=virtiofs root=<tag> |
125 |
+ # root=virtiofs:<tag> |