postmarketos-initramfs: switch to udev and refine root/boot partition detection and waiting
These changes are based on !5000 (closed) , hence this MR targets that branch. I split them up as these are separate features and I don't want to hold the other MR back.
postmarketos-initramfs: check for root subpartition
In mount_subpartition we currently try to look for the boot partition, to see if we're done (either we aren't using subpartitions or we found the right one). However it is possible that a device might have originally used the subpartition scheme, but was later converted to have a real boot partition (for EFI for example).
In this scenario, the boot partition would be found immediately, but the root subpartition would not be.
Address this by making mount_subpartition check for success by calling find_root_partition instead of find_boot_partition. For most installations this has no impact.
postmarketos-initramfs: better wait_[br]oot_partition
Rework the messages and avoid re-spawning the splash on every check. Additionally, add a call to check_keys, this lets users drop to a debug shell or export logs to triage this failure (particularly useful for hard-to-reproduce issues).
Finally, add a (liberal) 30 second timeout and dump logs at the end. If we're just waiting for a device to show up and it doesn't after 30 seconds then it's probably never going to...
Merge request reports
Activity
added 18 commits
- ccdb8bfb...1244e973 - 8 earlier commits
- a9117869 - main/postmarketos-initramfs: log to kernel ringbuffer
- ba052730 - postmarketos-initramfs: make CONFIGFS global
- 8def1665 - postmarketos-initramfs: check if UDC is configured before clearing
- b12302c5 - postmarketos-initramfs: use dd to allocate logs image
- f9394fb4 - postmarketos-initramfs: mount subpartitions after hooks
- e16b9cbf - postmarketos-initramfs: split into tiny + fullsize variants
- 6ba8d3fd - main/iskey: new aport
- 4a1194d6 - postmarketos-initramfs: debug-shell 2.0
- 9aadd597 - postmarketos-initramfs: check for root subpartition
- bccb5568 - postmarketos-initramfs: better wait_[br]oot_partition
By Caleb Connolly on 2024-04-18T21:45:48
Toggle commit listadded 1 commit
- ca55dcb9 - postmarketos-initramfs: better wait_[br]oot_partition
By Caleb Connolly on 2024-04-18T21:50:44
added 1 commit
- 173b8390 - postmarketos-initramfs: better wait_[br]oot_partition
By Caleb Connolly on 2024-04-18T21:52:23
- Resolved by Administrator
but was later converted to have a real boot partition (for EFI for example).
I don't really understand why root partition doesn't get mounted in this case
By jenneron on 2024-05-20T17:50:02
Edited by Ghost User
added 49 commits
- 98189d2c...d582bd91 - 39 earlier commits
- edd4f639 - postmarketos-initramfs: check if UDC is configured before clearing
- 619fd6ae - postmarketos-initramfs: use dd to allocate logs image
- 76e4d634 - postmarketos-initramfs: mount subpartitions after hooks
- a4459691 - main/iskey: new aport
- 0ef8f231 - postmarketos-initramfs: debug-shell 2.0
- f7665db3 - postmarketos-initramfs: check for root subpartition
- 8f70be3d - postmarketos-initramfs: better wait_[br]oot_partition
- 3ec207f6 - postmarketos-mkinitfs-hook-console-shell: switch to buffyboard
- fd14ed11 - postmarketos-initramfs: debug-shell: fbkeyboard->buffyboard
- 72bc9b24 - WIP
By Caleb Connolly on 2024-04-26T15:15:25
Toggle commit listadded 14 commits
- 72bc9b24...0a9bdd2c - 4 earlier commits
- 48500cfe - postmarketos-initramfs: check if UDC is configured before clearing
- fe37491e - postmarketos-initramfs: use dd to allocate logs image
- 73d19d1a - postmarketos-initramfs: mount subpartitions after hooks
- c02ffdcc - main/iskey: new aport
- 205c0139 - postmarketos-initramfs: debug-shell 2.0
- 78beb19b - postmarketos-initramfs: check for root subpartition
- ab9c2630 - postmarketos-initramfs: better wait_[br]oot_partition
- afc17d4d - postmarketos-mkinitfs-hook-console-shell: switch to buffyboard
- 0e294436 - postmarketos-initramfs: debug-shell: fbkeyboard->buffyboard
- 3d0ff968 - postmarketos-initramfs: switch to udev
By Caleb Connolly on 2024-04-28T14:22:48
Toggle commit listadded 1 commit
- fbe7160e - postmarketos-initramfs: switch to udev
By Caleb Connolly on 2024-04-28T14:23:32
added 16 commits
- fbe7160e...315995f5 - 6 earlier commits
- 0777ff34 - postmarketos-initramfs: check if UDC is configured before clearing
- 899e7403 - postmarketos-initramfs: use dd to allocate logs image
- 75f3e23e - postmarketos-initramfs: mount subpartitions after hooks
- 3fca515c - main/iskey: new aport
- 64ba15f0 - postmarketos-initramfs: debug-shell 2.0
- ab7c4ed7 - postmarketos-initramfs: check for root subpartition
- 30ffd357 - postmarketos-initramfs: better wait_[br]oot_partition
- 8e2b0c15 - postmarketos-mkinitfs-hook-console-shell: switch to buffyboard
- 7e4d36a1 - postmarketos-initramfs: debug-shell: fbkeyboard->buffyboard
- a6eec253 - postmarketos-initramfs: switch to udev
By Caleb Connolly on 2024-04-28T14:23:46
Toggle commit listadded 13 commits
- a6eec253...176e7e7d - 3 earlier commits
- 1f20d813 - postmarketos-initramfs: check if UDC is configured before clearing
- facef0ab - postmarketos-initramfs: use dd to allocate logs image
- 6751b744 - postmarketos-initramfs: mount subpartitions after hooks
- 8d569443 - main/iskey: new aport
- 11532566 - postmarketos-initramfs: debug-shell 2.0
- 1866c05b - postmarketos-initramfs: check for root subpartition
- ba9ca23c - postmarketos-initramfs: better wait_[br]oot_partition
- e6498257 - postmarketos-mkinitfs-hook-console-shell: switch to buffyboard
- fc1a28fd - postmarketos-initramfs: debug-shell: fbkeyboard->buffyboard
- 2497daff - postmarketos-initramfs: switch to udev
By Caleb Connolly on 2024-04-28T14:31:02
Toggle commit listadded 5 commits
- 300b63ba - postmarketos-initramfs: debug-shell 2.0
- d784d70c - postmarketos-initramfs: check for root subpartition
- 10c4c464 - postmarketos-initramfs: better wait_[br]oot_partition
- 38e2d124 - postmarketos-initramfs: debug-shell: buffyboard
- c86be18c - postmarketos-initramfs: switch to udev
By Caleb Connolly on 2024-04-28T17:41:07
Toggle commit list- Resolved by Administrator
This will significantly increase the size of the initramfs for installs using systemd, since udev (from systemd) will pull in libsystemd. I'm not sure how this compares to the size increase when using the non-systemd udev in Alpine...
By clayton craft on 2024-05-20T17:50:06
Edited by Ghost User
added 5 commits
- 55e6e1fb - postmarketos-initramfs: debug-shell 2.0
- 35906f8f - postmarketos-initramfs: check for root subpartition
- 489f5a32 - postmarketos-initramfs: better wait_[br]oot_partition
- 7b05e385 - postmarketos-initramfs: debug-shell: buffyboard
- 9acbb4d2 - postmarketos-initramfs: switch to udev
By Caleb Connolly on 2024-04-30T16:47:31
Toggle commit listadded 22 commits
-
9acbb4d2...5c984795 - 18 commits from branch
caleb/initramfs-log-to-kmsg
- 5abe9f61 - postmarketos-initramfs: check for root subpartition
- f4f95ac3 - postmarketos-initramfs: better wait_[br]oot_partition
- d129a294 - postmarketos-initramfs: debug-shell: buffyboard
- 70517b2c - postmarketos-initramfs: switch to udev
By Caleb Connolly on 2024-04-30T16:48:14
Toggle commit list-
9acbb4d2...5c984795 - 18 commits from branch
added 6 commits
- 69d5e4d5 - postmarketos-initramfs: debug-shell 2.0
- af9aa5e8 - device-*: depend on initramfs-minimal for devices with small boot
- cdebb569 - postmarketos-initramfs: check for root subpartition
- d1425cb0 - postmarketos-initramfs: better wait_[br]oot_partition
- 2ed80cac - postmarketos-initramfs: debug-shell: buffyboard
- 485a41a8 - postmarketos-initramfs: switch to udev
By Caleb Connolly on 2024-04-30T16:54:36
Toggle commit listadded 1 commit
- 60303ae4 - postmarketos-initramfs: switch to udev
By Caleb Connolly on 2024-05-04T16:05:30