Add Flatcar specific patch to enable the iscsi module

Flatcar uses its own network module instead of the Dracut one, but the
iscsi module depends on the network. So, in order to enable the iscsi
module, we need to patch the dependency
This commit is contained in:
Margarita Manterola 2021-03-25 10:48:34 +00:00
parent 5af3423377
commit 1bbb853ac9
2 changed files with 14 additions and 0 deletions

View File

@ -74,6 +74,8 @@ PATCHES=(
"${FILESDIR}"/050-systemd-remove-obsolete-syslog-parameter.patch
"${FILESDIR}"/050-lvm-fix-removal-of-pvscan-from-udev-rules.patch
"${FILESDIR}"/050-gentoo-ldconfig-paths.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