summary refs log tree commit diff
path: root/host/initramfs/etc
diff options
context:
space:
mode:
Diffstat (limited to 'host/initramfs/etc')
-rwxr-xr-xhost/initramfs/etc/init2
-rwxr-xr-xhost/initramfs/etc/probe5
2 files changed, 5 insertions, 2 deletions
diff --git a/host/initramfs/etc/init b/host/initramfs/etc/init
index 5f347a5..2ec8d91 100755
--- a/host/initramfs/etc/init
+++ b/host/initramfs/etc/init
@@ -23,7 +23,7 @@ background {
 }
 importas -iu mdevd_pid !
 
-if { modprobe ext4 }
+if { modprobe erofs }
 
 # Do a blocking read on the fifo to wait for mdevd to find the
 # partition.
diff --git a/host/initramfs/etc/probe b/host/initramfs/etc/probe
index 064b792..4cbd00d 100755
--- a/host/initramfs/etc/probe
+++ b/host/initramfs/etc/probe
@@ -10,7 +10,10 @@ if -n {
     backtick -E type { lsblk -lnpo PARTTYPE $mdev }
     test $type = 56a3bbc3-aefa-43d9-a64d-7b3fd59bbc4e
   }
-  if { modprobe loop }
+  if {
+    forx -pE module { ext4 loop }
+    modprobe $module
+  }
   backtick -E uuid { lsblk -lnpo PARTUUID $mdev }
   if { mkdir -p /mnt/${uuid} }
   if { mount $mdev /mnt/${uuid} }