Repository navigation
Add the aarch64-surface platform for the Surface Pro 11 - #15031
GeneralPawz wants to merge 1 commit into
Conversation
The Surface Pro 11 (devicetree root "microsoft,denali", LCD and OLED) runs Arch Linux Ports with the linux-sp11 kernel repository, not Arch Linux ARM, and boots a UKI that its kernel package builds. As plain aarch64 it gets Arch Linux ARM's pacman template, which drops the kernel repository on `omarchy refresh pacman`, the ALARM keyring, and the generic initramfs hooks (plymouth, encrypt, btrfs-overlayfs), whose build fails there. - omarchy-hw-platform: report aarch64-surface for "microsoft,denali", with an omarchy-hw-aarch64-surface predicate - default/pacman/aarch64-surface: Arch Linux Ports + linux-sp11 template, [omarchy] last because its aarch64 builds target ALARM's libraries - post-install pacman: no ALARM keyring on this platform - 00-omarchy-hooks.conf: keep mkinitcpio.conf's own HOOKS line - pkg-defaults, pacman helpers, image manifest: accept the new name - hw-platform test: LCD and OLED fixtures
|
| # The Surface Pro 11 boots a unified kernel image built by its kernel package | ||
| # from mkinitcpio.conf's own line (no Limine, no btrfs-overlayfs, no plymouth | ||
| # splash on its command line), so its line stays as it is. | ||
| [[ $_omarchy_platform != "aarch64-surface" ]] || _omarchy_platform=platform-owned |
There was a problem hiding this comment.
Surface fixes lack regression tests
pacman-templates-test.sh still excludes aarch64-surface, and mkinitcpio-hooks-test.sh never checks that it keeps its original HOOKS. Those suites can pass even if a refresh drops the Surface repositories or a rebuild restores the unwanted hooks.
Add Surface cases that check repository order, template copying, the ALARM keyring exclusion, and preservation of a custom HOOKS line.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
|
Thanks for the report and the detail in #15030. Some context that may save you work, since the ARM side is moving on the On Your two findings stand apart from that. The hooks list failing where there is no It would be good to compare notes with @turbineBMW. You have the LCD model, and his work is tested on the OLED one. |
|
Thanks for writing this up so thoroughly. A couple of questions:
|
|
@GeneralPawz Since this was opened, Omarchy's ARM side moved to one kernel of its own. Every Snapdragon laptop runs What would help most is your LCD X Plus. #14390 leaves the LCD and X Plus models alone until someone tests them, so a run of the ARM image from #11823 on yours, posted on #14390 with what works and what doesn't, is what gets them covered. |
|
Closing this, since Omarchy's ARM side now runs one kernel of its own, |
Fixes #15030
The Surface Pro 11 (Snapdragon X, devicetree root
microsoft,denali, LCD and OLED) runs Arch Linux Ports with the linux-sp11 kernel repository instead of Arch Linux ARM, and boots a UKI that its kernel package builds from mkinitcpio's output. As plainaarch64it gets Arch Linux ARM's pacman template (dropping its kernel repository onomarchy refresh pacman), the ALARM keyring, and the generic initramfs hooks, whose build fails there (btrfs-overlayfsdoesn't exist).This adds
aarch64-surfaceas a family of its own, following the Platforms section of AGENTS.md:omarchy-hw-platformreportsaarch64-surfacefor amicrosoft,denalidevicetree;omarchy-hw-aarch64-surfacepredicatedefault/pacman/aarch64-surface/: edge template with the Ports repositories and the kernel repository.[omarchy]sits last: its aarch64 builds target Arch Linux ARM's libraries, which lag Ports (e.g. Qt 6.11 vs 6.12), so packages both publish come from Portsinstall/post-install/pacman.sh: noarchlinuxarm-keyringon this platform00-omarchy-hooks.conf: the platform keeps mkinitcpio.conf's ownHOOKSlineomarchy-pkg-defaults, pacman helpers, image manifest: accept the namehw-platformtest: LCD and OLED fixturesValidation:
hw-platform,pacman-templates,image-target-platform,mkinitcpio-hooks,mkinitcpio-apple-drop-insandplatform-app-hookstests pass. On the device (Surface Pro 11, LCD): the detector printsaarch64-surface,pacman-confresolves the template to the same repositories and order as the working install, and the hooks drop-in leaves the originalHOOKSline unchanged.