mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 02:16:59 +02:00
sys-kernel/dracut: Apply Flatcar patches
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 Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
This commit is contained in:
parent
2a19f3cd76
commit
033048444f
@ -73,7 +73,9 @@ PATCHES=(
|
||||
"${FILESDIR}"/050-busybox-module-fix.patch
|
||||
"${FILESDIR}"/050-systemd-remove-obsolete-syslog-parameter.patch
|
||||
"${FILESDIR}"/050-lvm-fix-removal-of-pvscan-from-udev-rules.patch
|
||||
"${FILESDIR}"/gentoo-ldconfig-paths.patch
|
||||
"${FILESDIR}"/050-gentoo-ldconfig-paths.patch
|
||||
# Flatcar: override iscsi network dependency
|
||||
"${FILESDIR}"/050-change-network-dep-iscsi.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user