Repository navigation
Boot check: busybox encrypt Macs and the keyboard layout at the passphrase prompt - #576
Merged
Merged
Conversation
…t in the boot check A Mac installed before Omarchy's images unlocks its root in the busybox init through the encrypt hook and GRUB's cryptdevice=, with no crypttab; the boot check now verifies every GRUB entry's cryptdevice= and single rootflags= on such a Mac instead of failing it for a missing crypttab. On an encrypted Mac with a Latin non-US layout the image that boots must carry vconsole.conf and what loads it at the prompt (sd-vconsole's tools and KEYMAP file, busybox's keymap.bin, Plymouth's XKB symbols), in --boot-chain too, so update-verify covers legacy and non-US Macs. Both archives of the image are extracted: mkinitcpio keeps the compressed KEYMAP file in the early one.
…ot-check-busybox-keymap
…ad vconsole.conf in a clean shell os-prober's entries boot other installs, whose command lines are theirs.
…ot-check-busybox-keymap # Conflicts: # docs/lifecycle-dispatch.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ticket 67 (gap audit row B14): the boot check, and so
update-verify, now covers legacy busybox-encrypt Macs and the keyboard layout at the disk passphrase prompt. Ports omarchy-mx-mac #248, #247 and #266.encrypthook,cryptdevice=on the kernel line, no crypttab). The check used to fail it with "encrypted root has no crypttab". It now recognises a busybox image from its contents (init_functions and hooks/encrypt, no systemd init or cryptsetup generator) and checks each of its own GRUB entries (the 10_linux section) forcryptdevice=naming the root's LUKS partition and a singlerootflags=. The migration engine still refuses these Macs for ticket 45; its boot-file check no longer adds a false "incoherent" reason..initrdon Limine,/boot/initramfson GRUB) must carry/etc/vconsole.conf's keyboard settings and what loads them: sd-vconsole's tools and KEYMAP file, busybox'skeymap.bin(new, not in mx), Plymouth's XKB symbols. This also runs under--boot-chain, soupdate-verifyrefuses the reboot when the prompt would type with another layout.lsinitcpio -x --cpio). mkinitcpio 42 keeps compressed files, including the KEYMAP's.map.gz, in the early archive (confirmed on the M2's UKI). So mx would refuse every encrypted Mac with a non-US KEYMAP. This check extracts both archives. mx has the same bug, so it needs the same fix; that's the owner's call, since mx is frozen.Tests:
packages/omarchy-mac/boot/test/all) passes in the CI container image, as dotest/shell.d/update-boot-verify-test.sh,test/shell.d/snapshot-restore-mac-test.shandtools/hardware/test/mac-check-test.sh./boot,cryptdevice=) throughupdate-verify, passing and refused (lostcryptdevice=, secondrootflags=, wrong LUKS UUID). Also keymap cases for Limine/UKI, GRUB and busybox images, in both full and--boot-chainmode.lsinitcpio. It passes the busybox and systemd images and refuses an image without the keymap hook, one built before the layout changed, and a systemd image without sd-vconsole..map.gzonly in the early archive.Second review: no blockers. Applied: the busybox entry scan now covers only grub-mkconfig's 10_linux section, so os-prober entries for other installs don't count; vconsole.conf is read in a clean shell. Left as is: extracting the whole image, since the listing alone cannot compare vconsole.conf's settings.
Merged current quattro-upstream. Likely overlap with other work:
test/fixtures/limine-mac.sh(extended stubs, two new helpers) and the end oftest/update-verify-test.sh.