Files
pmaports-rtwo/main
glats 348a61895f postmarketos-initramfs: load loop module before mount_subpartitions on combined initramfs
On devices using a combined initramfs, init_2nd.sh is exec'd directly
from the first stage without ever calling load_modules(). This means the
loop kernel module (CONFIG_BLK_DEV_LOOP=m) is not guaranteed to be
loaded before mount_subpartitions() runs, causing losetup to fail:

  losetup: /dev/sda13: failed to set up loop device: No such file or directory
  ERROR: failed to mount subpartitions!

On the split initramfs path (init.sh), load_modules is called explicitly
before jumping to init_2nd.sh, so this regression did not affect those
devices.

Fix by explicitly loading the loop module in mount_subpartitions(),
right before the loop that searches for partitions. This location was
suggested by Clayton Craft.

Regression introduced by: 86bdb82116 (use loop device for subpartitions)
Tested on: oneplus-cheeseburger (combined initramfs, msm8998, loop=m)

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8034>
2026-02-19 00:19:39 -03:00
..
2026-02-07 23:56:13 +00:00
2026-01-12 17:01:35 +01:00
2026-02-14 02:09:52 +00:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-11 18:52:28 +01:00
2026-01-12 17:01:35 +01:00