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-01-03 18:36:33 +00:00
2026-01-03 18:36:33 +00:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-02-11 14:55:16 +00:00
2026-02-07 23:56:13 +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-02-04 15:29:18 +00:00
2026-01-27 12:33:05 -08:00
2026-02-14 02:09:52 +00:00
2026-02-14 18:05:17 +05:00
2026-01-03 18:36:33 +00:00
2026-01-03 18:36:33 +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-03 18:36:33 +00:00
2026-01-03 18:36:33 +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-12 17:01:35 +01:00
2026-01-03 18:36:33 +00:00
2026-01-15 11:15:21 +00:00
2026-01-03 18:36:33 +00:00
2026-01-12 17:01:35 +01:00
2026-01-03 18:36:33 +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-03 18:36:33 +00:00
2026-01-03 18:36:33 +00:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-03 18:36:33 +00:00
2026-01-12 17:01:35 +01:00
2026-01-03 18:36:33 +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-23 15:06:19 -08:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2025-11-30 15:50:26 +01:00
2026-02-01 13:17:40 -08:00
2026-01-15 11:05:38 +00:00
2026-01-12 17:01:35 +01:00
2026-01-12 17:01:35 +01:00
2026-01-28 20:23:52 +01:00
2026-01-03 18:36:33 +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-12 17:01:35 +01:00
2026-02-19 00:19:39 -03:00
2026-01-12 17:01:35 +01:00
2026-01-15 11:05:38 +00:00
2026-01-03 18:36:33 +00:00
2026-02-11 14:55:16 +00:00
2026-01-15 11:05:38 +00:00
2026-01-15 07:48:41 +00:00
2026-01-03 18:36:33 +00:00
2026-01-03 18:36:33 +00:00
2026-01-03 18:36:33 +00:00
2026-01-23 17:33:02 +01:00
2026-01-03 18:36:33 +00:00
2026-01-15 11:05:38 +00:00
2026-01-15 11:05:38 +00:00
2026-01-27 15:20:22 +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-15 11:05:38 +00:00
2026-01-12 17:01:35 +01:00
2026-01-18 12:20:33 +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-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-12 17:01:35 +01:00
2026-01-15 11:05:38 +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-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-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-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-15 16:52:13 +01:00
2026-01-12 17:01:35 +01:00
2026-01-17 16:56:28 +00:00
2026-01-12 17:01:35 +01:00
2026-01-03 18:36:33 +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-02-11 14:18:44 +00: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
2026-01-03 18:36:33 +00:00
2026-01-15 11:15:21 +00:00
2026-01-12 17:01:35 +01:00