sys-kernel/dracut: Apply Flatcar patches to 060_pre20240104-r2

isci dracut module needs flatcar-network as a dependency,
otherwise it cannot be installed by dracut.

Signed-off-by: Adrian Vladu <avladu@cloudbasesolutions.com>
This commit is contained in:
Adrian Vladu 2024-02-15 09:45:04 +00:00
parent 79aa25a8ee
commit aec9f0dcbb
2 changed files with 14 additions and 0 deletions

View File

@ -72,6 +72,8 @@ PATCHES=(
"${FILESDIR}"/dracut-060-grub-layout.patch
"${FILESDIR}"/dracut-060-systemd-255.patch
"${FILESDIR}"/dracut-059-install-new-systemd-hibernate-resume.service.patch
# Flatcar: override iscsi network dependency
"${FILESDIR}"/050-change-network-dep-iscsi.patch
)
src_configure() {

View File

@ -0,0 +1,12 @@
As Flatcar uses the flatcar-network module, we need to replace it in the iscsi
module setup in order to enable iscsi support.
diff --git a/modules.d/95iscsi/module-setup.sh b/modules.d/95iscsi/module-setup.sh
@@ -183,7 +183,7 @@
# called by dracut
depends() {
- echo network rootfs-block
+ echo flatcar-network rootfs-block
}
# called by dracut