postmarketos-initramfs: mount subpartitions after hooks (MR 5000)

This step is the most likely to go wrong or have issues, and it has side
effects which can make it difficult to run multiple times on one boot.
Move it to after hooks so that e.g. when dropping to a debug shell, we
land before the first call.

This also makes booting to hooks a faster in many cases.

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2024-04-10 02:08:02 +02:00 committed by Clayton Craft
parent 5dcb7aab62
commit 118a30935e
No known key found for this signature in database
GPG key ID: 4A4CED6D7EDF950A

View file

@ -34,7 +34,6 @@ if [ "$IN_CI" = "false" ]; then
show_splash "Loading..."
setup_mdev
setup_dynamic_partitions "${deviceinfo_super_partitions:=}"
mount_subpartitions
else
# loads all modules
setup_udev
@ -53,6 +52,8 @@ fi
setup_usb_network
start_unudhcpd
mount_subpartitions
wait_boot_partition
mount_boot_partition /boot
extract_initramfs_extra /boot/initramfs-extra