postmarketos-initramfs: refactor cmdline handling and other tech debt
All threads resolved!
All threads resolved!
Do a bunch of things...
- Improve various log messages for clarity/readabillity
- Introduce an "info" log level which can be enabled using the dracut-compatible
rd.info
kernel cmdline flag - Refactor
find_[rb]oot_partition
, introducing a commonfind_partition
function to contain the logic - Make pmos.nosplash/deviceinfo_no_framebuffer behaviour fully consistent
- Move all cmdline parsing to one place, and set variables to configure behaviour. Remove all uses of
grep ... /proc/cmdline
or iterating over /proc/cmdline. Much of the code here was taken from the Arch Linux initramfs and simplified/adapted to fit our usecase. They also use busybox ash so we shouldn't expect any weird surprised with it. - Introduce standard
pmos.xyz
namespaced cmdline arguments for the remaining options that haven't already been converted, deprecate but continue supporting the old options - Add a special case to try and log to tty0 and available serial consoles if
pmos.nosplash
is set and there are no active consoles (e.g. due to console=null) this may be useful on devices with bootloaders that force console=null.
Additionally, all the old and new cmdline arguments have been documented on the wiki @ https://wiki.postmarketos.org/wiki/Initramfs#Kernel_cmdline
Once this is in:
-
update boot-deploy to use new cmdline args ( pmos.root_uuid
,pmos.boot_uuid
,pmos.rootfsopts
, etc).
Edited by Casey
Merge request reports
Activity
added 7 commits
- e9663254 - postmarketos-initramfs: use local for more function-local variables
- 568835f1 - postmarketos-initramfs: refactor setup_log
- d53fa5cd - postmarketos-initramfs: refactor find_root/boot_partition
- bba5217d - postmarketos-initramfs: refactor cmdline parsing
- d0c3f57c - postmarketos-initramfs: add rd.info arg and reduce logging
- a1f5153d - postmarketos-initramfs: log splash messages
- 9fca706a - postmarketos-initramfs: bump pkgver and checksum
Toggle commit list- Resolved by Casey
added 15 commits
-
c18a3949...f51775ed - 7 commits from branch
master
- e2ea2a0b - postmarketos-initramfs: reword debug-shell usb storage info
- e9083261 - postmarketos-initramfs: use local for more function-local variables
- 4ad8f378 - postmarketos-initramfs: refactor setup_log
- 062221d9 - postmarketos-initramfs: refactor find_root/boot_partition
- 6eaa3a11 - postmarketos-initramfs: refactor cmdline parsing
- a64d9e6a - postmarketos-initramfs: add rd.info arg and reduce logging
- 9a789451 - postmarketos-initramfs: log splash messages
- 3de12294 - postmarketos-initramfs: bump pkgver and checksum
Toggle commit list-
c18a3949...f51775ed - 7 commits from branch
mentioned in merge request !6182 (merged)
requested review from @craftyguy
assigned to @craftyguy
- Resolved by Clayton Craft
- Resolved by Clayton Craft
- Resolved by Casey
- Resolved by Casey
- Resolved by Casey
- Resolved by Clayton Craft
- Resolved by Casey
added 32 commits
-
80a785c3...c2ca0f73 - 24 commits from branch
master
- 7449665a - postmarketos-initramfs: reword debug-shell usb storage info
- 9b8b2222 - postmarketos-initramfs: use local for more function-local variables
- 4cffcc75 - postmarketos-initramfs: refactor setup_log
- b2307fec - postmarketos-initramfs: refactor find_root/boot_partition
- 00f097bc - postmarketos-initramfs: refactor cmdline parsing
- 9bd0726d - postmarketos-initramfs: add rd.info arg and reduce logging
- 048adc13 - postmarketos-initramfs: log splash messages
- cd1260ba - postmarketos-initramfs: bump pkgver and checksum
Toggle commit list-
80a785c3...c2ca0f73 - 24 commits from branch
- Resolved by Clayton Craft
added 239 commits
-
cd1260ba...267126bc - 231 commits from branch
master
- 70d5179e - postmarketos-initramfs: reword debug-shell usb storage info
- 52f25786 - postmarketos-initramfs: use local for more function-local variables
- 392dd0f8 - postmarketos-initramfs: refactor setup_log
- 3d3c0ec3 - postmarketos-initramfs: refactor find_root/boot_partition
- 792f88af - postmarketos-initramfs: refactor cmdline parsing
- 6d8eb44a - postmarketos-initramfs: add rd.info arg and reduce logging
- 32f65d75 - postmarketos-initramfs: log splash messages
- fd0cdff7 - postmarketos-initramfs: bump pkgver and checksum
Toggle commit list-
cd1260ba...267126bc - 231 commits from branch
- Resolved by Ferass El Hafidi
@funderscore mentioned in chat that he would like to re-test this before merging
mentioned in commit 8400fffe
mentioned in commit 02442241
mentioned in commit 4133f4ae
mentioned in commit 4d3958c4
mentioned in commit acb5d895
mentioned in commit 91c5784b
mentioned in commit 865653c9
mentioned in commit b7118581
added 11 commits
-
fd0cdff7...8947f031 - 3 commits from branch
master
- acb5d895 - postmarketos-initramfs: reword debug-shell usb storage info
- 4133f4ae - postmarketos-initramfs: use local for more function-local variables
- 02442241 - postmarketos-initramfs: refactor setup_log
- 91c5784b - postmarketos-initramfs: refactor find_root/boot_partition
- 8400fffe - postmarketos-initramfs: refactor cmdline parsing
- 4d3958c4 - postmarketos-initramfs: add rd.info arg and reduce logging
- 865653c9 - postmarketos-initramfs: log splash messages
- b7118581 - postmarketos-initramfs: bump pkgver and checksum
Toggle commit list-
fd0cdff7...8947f031 - 3 commits from branch
enabled an automatic merge when all merge checks for b7118581 pass
Please register or sign in to reply