]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(systemd-sysext): install the required kernel modules
authorVitaly Kuznetsov <vkuznets@redhat.com>
Mon, 23 Jun 2025 13:29:12 +0000 (15:29 +0200)
committerBenjamin Drung <bdrung@ubuntu.com>
Tue, 8 Jul 2025 13:02:40 +0000 (15:02 +0200)
'systemd-repart' tool is commonly used to produce Discoverable Disk Image
(DDI) ("--make-ddi=TYPE" option) and by default the tool creates 'erofs'
root volume for sysext/confext. Include 'erofs' kernel module into
initramfs if present.

While on in, include 'loop' module as well as this one is an absolute must.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
modules.d/11systemd-sysext/module-setup.sh

index 4ab02e81611b8114e5c60b04f9da52a2bfebeb38..8d4032bbc1e0df8ab923349a8444aeca39b83119 100755 (executable)
@@ -23,6 +23,12 @@ depends() {
 
 }
 
+# Install kernel module(s).
+installkernel() {
+    hostonly=$(optional_hostonly) instmods -s erofs
+    hostonly='' instmods loop
+}
+
 # Install the required file(s) and directories for the module in the initramfs.
 install() {