Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bin/omarchy-iso-make
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,17 @@ if [[ -n $LOCAL_OMARCHY_PATH ]]; then
LOCAL_PKGS_PATH=$(realpath "$LOCAL_PKGS_PATH")
fi

# Architecture selection. x86_64 is unchanged. aarch64 builds run in a pinned
# Architecture selection. Both architectures boot linux-omarchy live; x86_64
# also carries linux-t2 for Macs. aarch64 builds run in a pinned
# Arch Linux ARM container against Omarchy's aarch64 repository and its mirror
# of Arch Linux ARM in the build's channel, stable unless --rc or --edge says
# otherwise, as on x86_64, and make one image for every board, on the
# linux-omarchy that repository publishes.
# build-iso.sh refuses a runtime without the platform support.
CONTAINER_IMAGE=ghcr.io/archlinux/archlinux:latest
CONTAINER_PLATFORM_ARGS=()
OMARCHY_KERNEL=linux-t2
OMARCHY_KERNEL=linux-omarchy
if [[ $OMARCHY_ARCH == aarch64 ]]; then
OMARCHY_KERNEL=linux-omarchy
if [[ -n $PACKAGE_DIR ]]; then
[[ -d $PACKAGE_DIR ]] || { echo "Error: package directory not found at $PACKAGE_DIR" >&2; exit 1; }
PACKAGE_DIR=$(realpath "$PACKAGE_DIR")
Expand Down
21 changes: 12 additions & 9 deletions builder/build-iso.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e
OMARCHY_ISO_REF="${OMARCHY_ISO_REF:-quattro}"
OMARCHY_MIRROR="${OMARCHY_MIRROR:-stable}"
OMARCHY_ARCH="${OMARCHY_ARCH:-x86_64}"
OMARCHY_KERNEL="${OMARCHY_KERNEL:-linux-t2}"
OMARCHY_KERNEL="${OMARCHY_KERNEL:-linux-omarchy}"
# profiledef.sh reads both in the mkarchiso environment.
export OMARCHY_ARCH OMARCHY_KERNEL

Expand Down Expand Up @@ -182,8 +182,12 @@ else
: > "$build_cache_dir/airootfs/root/omarchy_kernel"
fi

# The live kernel's archiso initramfs. x86_64 also keeps linux-t2's, which
# GRUB boots on a Mac (configs/grub/grub.cfg).
cp "/builder/${OMARCHY_KERNEL}.preset" "$build_cache_dir/airootfs/etc/mkinitcpio.d/${OMARCHY_KERNEL}.preset"

# Architecture overlay on the shared profile: live kernel, initramfs hooks,
# GRUB entries. x86_64 keeps its exact previous behaviour.
# GRUB entries.
if [[ $OMARCHY_ARCH == aarch64 ]]; then
# releng's live package list is x86-flavoured; drop what arm64 cannot use.
arm_live_excludes=(amd-ucode broadcom-wl edk2-shell hyperv intel-ucode linux memtest86+ memtest86+-efi open-vm-tools refind reflector syslinux virtualbox-guest-utils-nox)
Expand All @@ -198,7 +202,6 @@ if [[ $OMARCHY_ARCH == aarch64 ]]; then
# I2C-HID keyboard modules.
configure_archiso_aarch64_mkinitcpio "$build_cache_dir/airootfs/etc/mkinitcpio.conf.d/archiso.conf"
boot_splash_kernel_options="quiet splash "
cp "/builder/${OMARCHY_KERNEL}.preset" "$build_cache_dir/airootfs/etc/mkinitcpio.d/${OMARCHY_KERNEL}.preset"
# The N1x firmware's SPCR serial console would take the console from the
# panel, hence console=tty0 acpi=nospcr.
kernel_options="console=tty0 acpi=nospcr initramfs_async=0"
Expand Down Expand Up @@ -229,7 +232,7 @@ else
kernel_options="xe.enable_panel_replay=0 initramfs_async=0"
fi
for grub_config in "$build_cache_dir/grub/grub.cfg" "$build_cache_dir/grub/loopback.cfg"; do
configure_grub_kernel "$grub_config" "$OMARCHY_KERNEL"
configure_grub_platform "$grub_config" "$OMARCHY_ARCH"
sed -i \
-e "s|%KERNEL%|$OMARCHY_KERNEL|g" \
-e "s|%BOOT_SPLASH_KERNEL_OPTIONS%|$boot_splash_kernel_options|g" \
Expand Down Expand Up @@ -318,22 +321,22 @@ if [[ $OMARCHY_ARCH == aarch64 ]]; then
# saves a laptop's signed firmware from Windows with qcom-firmware-extract.
arch_packages=("$OMARCHY_KERNEL" archlinuxarm-keyring git gum jq openssl openssh pciutils plymouth ttfx tzupdate omarchy-keyring "$OMARCHY_SETTINGS_PACKAGE" lvm2 cryptsetup parted systemd-ukify linux-firmware-qcom qcom-firmware-extract python)
else
arch_packages=(linux-t2 git gum jq openssl plymouth ttfx tzupdate omarchy-keyring "$OMARCHY_SETTINGS_PACKAGE" lvm2 cryptsetup parted)
# linux-t2 is the live kernel on a Mac (configs/grub/grub.cfg).
arch_packages=("$OMARCHY_KERNEL" linux-t2 git gum jq openssl plymouth ttfx tzupdate omarchy-keyring "$OMARCHY_SETTINGS_PACKAGE" lvm2 cryptsetup parted)
fi
live_packages_file="$build_cache_dir/packages.$OMARCHY_ARCH"
printf '%s\n' "${arch_packages[@]}" >> "$live_packages_file"

# The live ISO boots linux-t2 (see airootfs/etc/mkinitcpio.d/linux-t2.preset), so
# stock linux is a second kernel nobody boots: ~147MB of ISO, plus its own archiso
# initramfs, copied into both the ISO tree and the size-constrained FAT EFI image.
# The live ISO boots linux-omarchy, or linux-t2 on a Mac, so stock linux is a
# kernel nobody boots: ~147MB of ISO, plus its own archiso initramfs.
#
# It cannot just be deleted — releng's broadcom-wl hard-depends on it, and it is
# the only releng package that does, so pacman would drag the kernel straight back
# in. broadcom-wl is a prebuilt module for stock linux and cannot load on the
# kernel we boot, so it has done nothing since we started booting T2 anyway. The
# install is entirely offline and the live environment needs no Wi-Fi driver.
#
# Anchored so linux-t2 and linux-firmware are untouched.
# Anchored so linux-omarchy, linux-t2 and linux-firmware are untouched.
sed -i -E '/^(linux|broadcom-wl)$/d' "$live_packages_file"

# Build the offline mirror: everything pacstrap might want during the target
Expand Down
13 changes: 6 additions & 7 deletions builder/grub-platform.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
#!/usr/bin/env bash

# The N1x recovery entry boots the hardware probe that only linux-omarchy
# can run, so it stays in the menu of an image on that kernel and leaves every
# other one.
configure_grub_kernel() {
# The N1x recovery entry boots the hardware probe that only an aarch64 image
# can run, so it stays in that image's menu and leaves the x86_64 one.
configure_grub_platform() {
local config=$1
local kernel=${2:-}
local arch=${2:-}

case "$kernel" in
linux-omarchy)
case "$arch" in
aarch64)
sed -i \
-e '/^%N1X_ONLY_BEGIN%$/d' \
-e '/^%N1X_ONLY_END%$/d' \
Expand Down
2 changes: 1 addition & 1 deletion builder/linux-omarchy.preset
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# mkinitcpio preset for the N1x live kernel.
# mkinitcpio preset for the live linux-omarchy kernel.

PRESETS=('archiso')

Expand Down
27 changes: 21 additions & 6 deletions configs/grub/grub.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,21 @@ default=archlinux
timeout=0
timeout_style=hidden

# The live kernel is the one the installer puts on the machine: linux-omarchy,
# and linux-t2 on a Mac, whose T2 models need it for the keyboard and trackpad.
# Only a firmware that names Apple Inc. as the system's maker boots linux-t2.
set live_kernel=%KERNEL%
if [ -f '/%INSTALL_DIR%/boot/%ARCH%/vmlinuz-linux-t2' ]; then
unset sys_vendor
if insmod smbios; then
if smbios --type 1 --get-string 4 --set sys_vendor; then
if [ "${sys_vendor}" == 'Apple Inc.' ]; then
set live_kernel=linux-t2
fi
fi
fi
fi


# Menu entries

Expand Down Expand Up @@ -76,21 +91,21 @@ fi

menuentry "Omarchy (%ARCH%, ${archiso_platform})" --class arch --class gnu-linux --class gnu --class os --id 'archlinux' {
set gfxpayload=keep
linux /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-%KERNEL% archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% %BOOT_SPLASH_KERNEL_OPTIONS%%KERNEL_OPTIONS%
initrd /%INSTALL_DIR%/boot/%ARCH%/initramfs-%KERNEL%.img
linux /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-${live_kernel} archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% %BOOT_SPLASH_KERNEL_OPTIONS%%KERNEL_OPTIONS%
initrd /%INSTALL_DIR%/boot/%ARCH%/initramfs-${live_kernel}.img
}

menuentry "Omarchy with speakup screen reader (%ARCH%, ${archiso_platform})" --hotkey s --class arch --class gnu-linux --class gnu --class os --id 'archlinux-accessibility' {
set gfxpayload=keep
linux /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-%KERNEL% archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% accessibility=on %KERNEL_OPTIONS%
initrd /%INSTALL_DIR%/boot/%ARCH%/initramfs-%KERNEL%.img
linux /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-${live_kernel} archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% accessibility=on %KERNEL_OPTIONS%
initrd /%INSTALL_DIR%/boot/%ARCH%/initramfs-${live_kernel}.img
}

%N1X_ONLY_BEGIN%
menuentry "N1x recovery shell (hardware probe, no installer)" --class arch --class gnu-linux --class gnu --class os --id 'n1x-recovery' {
set gfxpayload=keep
linux /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-%KERNEL% archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% omarchy.n1x_recovery=1 acpi=nospcr disablehooks=plymouth plymouth.enable=0 nomodeset module_blacklist=nvidia,nvidia_drm,nvidia_modeset,nvidia_uvm,nvidia_peermem,nouveau modprobe.blacklist=nvidia,nvidia_drm,nvidia_modeset,nvidia_uvm,nvidia_peermem,nouveau nvidia_drm.modeset=0 systemd.unit=multi-user.target console=tty0 fbcon=map:0 earlycon loglevel=7 ignore_loglevel systemd.show_status=1 systemd.log_target=console udev.log_level=debug vt.global_cursor_default=1
initrd /%INSTALL_DIR%/boot/%ARCH%/initramfs-%KERNEL%.img
linux /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-${live_kernel} archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% omarchy.n1x_recovery=1 acpi=nospcr disablehooks=plymouth plymouth.enable=0 nomodeset module_blacklist=nvidia,nvidia_drm,nvidia_modeset,nvidia_uvm,nvidia_peermem,nouveau modprobe.blacklist=nvidia,nvidia_drm,nvidia_modeset,nvidia_uvm,nvidia_peermem,nouveau nvidia_drm.modeset=0 systemd.unit=multi-user.target console=tty0 fbcon=map:0 earlycon loglevel=7 ignore_loglevel systemd.show_status=1 systemd.log_target=console udev.log_level=debug vt.global_cursor_default=1
initrd /%INSTALL_DIR%/boot/%ARCH%/initramfs-${live_kernel}.img
}
%N1X_ONLY_END%

Expand Down
26 changes: 20 additions & 6 deletions configs/grub/loopback.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,40 @@ default=archlinux
timeout=0
timeout_style=hidden

# The live kernel: linux-t2 only where the firmware names Apple Inc. as the
# system's maker, as in grub.cfg.
set live_kernel=%KERNEL%
if [ -f '/%INSTALL_DIR%/boot/%ARCH%/vmlinuz-linux-t2' ]; then
unset sys_vendor
if insmod smbios; then
if smbios --type 1 --get-string 4 --set sys_vendor; then
if [ "${sys_vendor}" == 'Apple Inc.' ]; then
set live_kernel=linux-t2
fi
fi
fi
fi


# Menu entries

menuentry "Omarchy (%ARCH%, ${archiso_platform})" --class arch --class gnu-linux --class gnu --class os --id 'archlinux' {
set gfxpayload=keep
linux /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-%KERNEL% archisobasedir=%INSTALL_DIR% img_dev=UUID=${archiso_img_dev_uuid} img_loop="${iso_path}" %BOOT_SPLASH_KERNEL_OPTIONS%%KERNEL_OPTIONS%
initrd /%INSTALL_DIR%/boot/%ARCH%/initramfs-%KERNEL%.img
linux /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-${live_kernel} archisobasedir=%INSTALL_DIR% img_dev=UUID=${archiso_img_dev_uuid} img_loop="${iso_path}" %BOOT_SPLASH_KERNEL_OPTIONS%%KERNEL_OPTIONS%
initrd /%INSTALL_DIR%/boot/%ARCH%/initramfs-${live_kernel}.img
}

menuentry "Omarchy with speakup screen reader (%ARCH%, ${archiso_platform})" --hotkey s --class arch --class gnu-linux --class gnu --class os --id 'archlinux-accessibility' {
set gfxpayload=keep
linux /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-%KERNEL% archisobasedir=%INSTALL_DIR% img_dev=UUID=${archiso_img_dev_uuid} img_loop="${iso_path}" accessibility=on %KERNEL_OPTIONS%
initrd /%INSTALL_DIR%/boot/%ARCH%/initramfs-%KERNEL%.img
linux /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-${live_kernel} archisobasedir=%INSTALL_DIR% img_dev=UUID=${archiso_img_dev_uuid} img_loop="${iso_path}" accessibility=on %KERNEL_OPTIONS%
initrd /%INSTALL_DIR%/boot/%ARCH%/initramfs-${live_kernel}.img
}

%N1X_ONLY_BEGIN%
menuentry "N1x recovery shell (hardware probe, no installer)" --class arch --class gnu-linux --class gnu --class os --id 'n1x-recovery' {
set gfxpayload=keep
linux /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-%KERNEL% archisobasedir=%INSTALL_DIR% img_dev=UUID=${archiso_img_dev_uuid} img_loop="${iso_path}" omarchy.n1x_recovery=1 acpi=nospcr disablehooks=plymouth plymouth.enable=0 nomodeset module_blacklist=nvidia,nvidia_drm,nvidia_modeset,nvidia_uvm,nvidia_peermem,nouveau modprobe.blacklist=nvidia,nvidia_drm,nvidia_modeset,nvidia_uvm,nvidia_peermem,nouveau nvidia_drm.modeset=0 systemd.unit=multi-user.target console=tty0 fbcon=map:0 earlycon loglevel=7 ignore_loglevel systemd.show_status=1 systemd.log_target=console udev.log_level=debug vt.global_cursor_default=1
initrd /%INSTALL_DIR%/boot/%ARCH%/initramfs-%KERNEL%.img
linux /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-${live_kernel} archisobasedir=%INSTALL_DIR% img_dev=UUID=${archiso_img_dev_uuid} img_loop="${iso_path}" omarchy.n1x_recovery=1 acpi=nospcr disablehooks=plymouth plymouth.enable=0 nomodeset module_blacklist=nvidia,nvidia_drm,nvidia_modeset,nvidia_uvm,nvidia_peermem,nouveau modprobe.blacklist=nvidia,nvidia_drm,nvidia_modeset,nvidia_uvm,nvidia_peermem,nouveau nvidia_drm.modeset=0 systemd.unit=multi-user.target console=tty0 fbcon=map:0 earlycon loglevel=7 ignore_loglevel systemd.show_status=1 systemd.log_target=console udev.log_level=debug vt.global_cursor_default=1
initrd /%INSTALL_DIR%/boot/%ARCH%/initramfs-${live_kernel}.img
}
%N1X_ONLY_END%

Expand Down
12 changes: 6 additions & 6 deletions configs/syslinux/archiso_pxe-linux.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Boot the Omarchy install medium using NBD.
It allows you to install Omarchy or perform system maintenance.
ENDTEXT
MENU LABEL Omarchy install medium (x86_64, NBD)
LINUX ::/%INSTALL_DIR%/boot/x86_64/vmlinuz-linux-t2
INITRD ::/%INSTALL_DIR%/boot/x86_64/initramfs-linux-t2.img
LINUX ::/%INSTALL_DIR%/boot/x86_64/vmlinuz-linux-omarchy
INITRD ::/%INSTALL_DIR%/boot/x86_64/initramfs-linux-omarchy.img
APPEND archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% archiso_nbd_srv=${pxeserver} cms_verify=y initramfs_async=0
SYSAPPEND 3

Expand All @@ -15,8 +15,8 @@ Boot the Omarchy live medium using NFS.
It allows you to install Omarchy or perform system maintenance.
ENDTEXT
MENU LABEL Omarchy install medium (x86_64, NFS)
LINUX ::/%INSTALL_DIR%/boot/x86_64/vmlinuz-linux-t2
INITRD ::/%INSTALL_DIR%/boot/x86_64/initramfs-linux-t2.img
LINUX ::/%INSTALL_DIR%/boot/x86_64/vmlinuz-linux-omarchy
INITRD ::/%INSTALL_DIR%/boot/x86_64/initramfs-linux-omarchy.img
APPEND archisobasedir=%INSTALL_DIR% archiso_nfs_srv=${pxeserver}:/run/archiso/bootmnt cms_verify=y initramfs_async=0
SYSAPPEND 3

Expand All @@ -26,7 +26,7 @@ Boot the Omarchy live medium using HTTP.
It allows you to install Omarchy or perform system maintenance.
ENDTEXT
MENU LABEL Omarchy install medium (x86_64, HTTP)
LINUX ::/%INSTALL_DIR%/boot/x86_64/vmlinuz-linux-t2
INITRD ::/%INSTALL_DIR%/boot/x86_64/initramfs-linux-t2.img
LINUX ::/%INSTALL_DIR%/boot/x86_64/vmlinuz-linux-omarchy
INITRD ::/%INSTALL_DIR%/boot/x86_64/initramfs-linux-omarchy.img
APPEND archisobasedir=%INSTALL_DIR% archiso_http_srv=http://${pxeserver}/ cms_verify=y initramfs_async=0
SYSAPPEND 3
8 changes: 4 additions & 4 deletions configs/syslinux/archiso_sys-linux.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Boot the Omarchy install medium on BIOS.
It allows you to install Omarchy or perform system maintenance.
ENDTEXT
MENU LABEL Omarchy install medium (x86_64, BIOS)
LINUX /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux-t2
INITRD /%INSTALL_DIR%/boot/x86_64/initramfs-linux-t2.img
LINUX /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux-omarchy
INITRD /%INSTALL_DIR%/boot/x86_64/initramfs-linux-omarchy.img
APPEND archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% quiet splash xe.enable_panel_replay=0 initramfs_async=0

# Accessibility boot option
Expand All @@ -15,6 +15,6 @@ Boot the Omarchy install medium on BIOS with speakup screen reader.
It allows you to install Omarchy or perform system maintenance with speech feedback.
ENDTEXT
MENU LABEL Omarchy install medium (x86_64, BIOS) with ^speech
LINUX /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux-t2
INITRD /%INSTALL_DIR%/boot/x86_64/initramfs-linux-t2.img
LINUX /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux-omarchy
INITRD /%INSTALL_DIR%/boot/x86_64/initramfs-linux-omarchy.img
APPEND archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% accessibility=on xe.enable_panel_replay=0 initramfs_async=0
14 changes: 8 additions & 6 deletions test/unit/aarch64-build-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,21 +71,23 @@ grep -Fq 'arch="${OMARCHY_ARCH:-x86_64}"' "$ROOT/configs/profiledef.sh" || fail
# --- GRUB templating -----------------------------------------------------------
for cfg in grub.cfg loopback.cfg; do
src="$ROOT/configs/grub/$cfg"
grep -Fq 'vmlinuz-%KERNEL%' "$src" || fail "$cfg does not template the kernel"
grep -Fqx 'set live_kernel=%KERNEL%' "$src" || fail "$cfg does not template the kernel"
grep -Fq 'vmlinuz-${live_kernel}' "$src" || fail "$cfg entries do not boot the selected kernel"
grep -Fq "if [ \"\${sys_vendor}\" == 'Apple Inc.' ]; then" "$src" || fail "$cfg boots linux-t2 on a machine Apple did not make"
grep -Fq '%BOOT_SPLASH_KERNEL_OPTIONS%%KERNEL_OPTIONS%' "$src" || fail "$cfg does not template boot options"
grep -Fq -- "--id 'n1x-recovery'" "$src" || fail "$cfg lacks the N1x recovery entry"
grep -Fq 'omarchy.n1x_recovery=1 acpi=nospcr' "$src" || fail "$cfg recovery entry lacks acpi=nospcr"
source "$ROOT/builder/grub-platform.sh"
for platform in linux-t2 linux-omarchy; do
for platform in x86_64 aarch64; do
cp "$src" "$fixture/$platform-$cfg"
configure_grub_kernel "$fixture/$platform-$cfg" "$platform"
configure_grub_platform "$fixture/$platform-$cfg" "$platform"
sed -i -e 's|%KERNEL%|linux-omarchy|g' -e 's|%BOOT_SPLASH_KERNEL_OPTIONS%|quiet splash |g' -e 's|%KERNEL_OPTIONS%|console=tty0|g' \
-e 's|%INSTALL_DIR%|arch|g' -e 's|%ARCH%|aarch64|g' -e 's|%ARCHISO_UUID%|x|g' "$fixture/$platform-$cfg"
-e 's|%INSTALL_DIR%|arch|g' -e "s|%ARCH%|$platform|g" -e 's|%ARCHISO_UUID%|x|g' "$fixture/$platform-$cfg"
if command -v grub-script-check >/dev/null; then
grub-script-check "$fixture/$platform-$cfg" || fail "$cfg ($platform) is not valid GRUB script"
fi
if [[ $platform == linux-omarchy ]]; then
grep -Fq 'n1x-recovery' "$fixture/$platform-$cfg" || fail "the N1x kernel's menu lost the recovery entry in $cfg"
if [[ $platform == aarch64 ]]; then
grep -Fq 'n1x-recovery' "$fixture/$platform-$cfg" || fail "the aarch64 menu lost the N1x recovery entry in $cfg"
else
grep -Fq 'n1x-recovery' "$fixture/$platform-$cfg" && fail "recovery entry leaked into the $platform $cfg"
fi
Expand Down