From c23e0e7b3d393c8707610aab8f9b5e1cb0cc5289 Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Sun, 21 Sep 2025 23:47:10 -0400 Subject: [PATCH] Config updates --- .../airootfs/etc/mkinitcpio.d/linux.preset | 9 +++++ .../entries/01-archiso-x86_64-linux.conf | 2 +- configs/grub/grub.cfg | 11 +++--- configs/syslinux/archiso_head.cfg | 28 +++++++++++++++ configs/syslinux/archiso_pxe-linux.cfg | 32 +++++++++++++++++ configs/syslinux/archiso_pxe.cfg | 5 +++ configs/syslinux/archiso_sys-linux.cfg | 20 +++++++++++ configs/syslinux/archiso_sys.cfg | 8 +++++ configs/syslinux/archiso_tail.cfg | 35 +++++++++++++++++++ configs/syslinux/syslinux.cfg | 11 ++++++ 10 files changed, 155 insertions(+), 6 deletions(-) create mode 100644 configs/airootfs/etc/mkinitcpio.d/linux.preset create mode 100644 configs/syslinux/archiso_head.cfg create mode 100644 configs/syslinux/archiso_pxe-linux.cfg create mode 100644 configs/syslinux/archiso_pxe.cfg create mode 100644 configs/syslinux/archiso_sys-linux.cfg create mode 100644 configs/syslinux/archiso_sys.cfg create mode 100644 configs/syslinux/archiso_tail.cfg create mode 100644 configs/syslinux/syslinux.cfg diff --git a/configs/airootfs/etc/mkinitcpio.d/linux.preset b/configs/airootfs/etc/mkinitcpio.d/linux.preset new file mode 100644 index 0000000..c40726e --- /dev/null +++ b/configs/airootfs/etc/mkinitcpio.d/linux.preset @@ -0,0 +1,9 @@ +# mkinitcpio preset file for the 'linux' package on archiso + +PRESETS=('archiso') + +ALL_kver='/boot/vmlinuz-linux-t2' +archiso_config='/etc/mkinitcpio.conf.d/archiso.conf' + +archiso_image="/boot/initramfs-linux-t2.img" + diff --git a/configs/efiboot/loader/entries/01-archiso-x86_64-linux.conf b/configs/efiboot/loader/entries/01-archiso-x86_64-linux.conf index 651f110..ebe4481 100644 --- a/configs/efiboot/loader/entries/01-archiso-x86_64-linux.conf +++ b/configs/efiboot/loader/entries/01-archiso-x86_64-linux.conf @@ -1,4 +1,4 @@ -title Arch Linux install medium (x86_64, UEFI) +title Omarchy (x86_64, UEFI) sort-key 01 linux /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux-t2 initrd /%INSTALL_DIR%/boot/x86_64/initramfs-linux-t2.img diff --git a/configs/grub/grub.cfg b/configs/grub/grub.cfg index 739c806..64dad0f 100644 --- a/configs/grub/grub.cfg +++ b/configs/grub/grub.cfg @@ -9,11 +9,12 @@ insmod exfat insmod udf # Use graphics-mode output +insmod font if loadfont "${prefix}/fonts/unicode.pf2" ; then insmod all_video set gfxmode="auto" terminal_input console - terminal_output console + terminal_output gfxterm fi # Enable serial console @@ -51,16 +52,16 @@ timeout_style=hidden # Menu entries -menuentry "Arch Linux install medium (%ARCH%, ${archiso_platform})" --class arch --class gnu-linux --class gnu --class os --id 'archlinux' { +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-linux-t2 archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% quiet splash initrd /%INSTALL_DIR%/boot/%ARCH%/initramfs-linux-t2.img } -menuentry "Arch Linux install medium with speakup screen reader (%ARCH%, ${archiso_platform})" --hotkey s --class arch --class gnu-linux --class gnu --class os --id 'archlinux-accessibility' { +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-linux archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% accessibility=on - initrd /%INSTALL_DIR%/boot/%ARCH%/initramfs-linux.img + linux /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-linux-t2 archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% accessibility=on + initrd /%INSTALL_DIR%/boot/%ARCH%/initramfs-linux-t2.img } diff --git a/configs/syslinux/archiso_head.cfg b/configs/syslinux/archiso_head.cfg new file mode 100644 index 0000000..d1a9870 --- /dev/null +++ b/configs/syslinux/archiso_head.cfg @@ -0,0 +1,28 @@ +SERIAL 0 115200 +UI vesamenu.c32 +MENU TITLE Omarchy +MENU BACKGROUND splash.png + +MENU WIDTH 78 +MENU MARGIN 4 +MENU ROWS 7 +MENU VSHIFT 10 +MENU TABMSGROW 14 +MENU CMDLINEROW 14 +MENU HELPMSGROW 16 +MENU HELPMSGENDROW 29 + +# Refer to https://wiki.syslinux.org/wiki/index.php/Comboot/menu.c32 + +MENU COLOR border 30;44 #40ffffff #a0000000 std +MENU COLOR title 1;36;44 #9033ccff #a0000000 std +MENU COLOR sel 7;37;40 #e0ffffff #20ffffff all +MENU COLOR unsel 37;44 #50ffffff #a0000000 std +MENU COLOR help 37;40 #c0ffffff #a0000000 std +MENU COLOR timeout_msg 37;40 #80ffffff #00000000 std +MENU COLOR timeout 1;37;40 #c0ffffff #00000000 std +MENU COLOR msg07 37;40 #90ffffff #a0000000 std +MENU COLOR tabmsg 31;40 #30ffffff #00000000 std + +MENU CLEAR +MENU IMMEDIATE diff --git a/configs/syslinux/archiso_pxe-linux.cfg b/configs/syslinux/archiso_pxe-linux.cfg new file mode 100644 index 0000000..cece385 --- /dev/null +++ b/configs/syslinux/archiso_pxe-linux.cfg @@ -0,0 +1,32 @@ +LABEL arch64_nbd +TEXT HELP +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 +APPEND archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% archiso_nbd_srv=${pxeserver} cms_verify=y +SYSAPPEND 3 + +LABEL arch64_nfs +TEXT HELP +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 +APPEND archisobasedir=%INSTALL_DIR% archiso_nfs_srv=${pxeserver}:/run/archiso/bootmnt cms_verify=y +SYSAPPEND 3 + +LABEL arch64_http +TEXT HELP +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 +APPEND archisobasedir=%INSTALL_DIR% archiso_http_srv=http://${pxeserver}/ cms_verify=y +SYSAPPEND 3 diff --git a/configs/syslinux/archiso_pxe.cfg b/configs/syslinux/archiso_pxe.cfg new file mode 100644 index 0000000..b4c9a80 --- /dev/null +++ b/configs/syslinux/archiso_pxe.cfg @@ -0,0 +1,5 @@ +INCLUDE archiso_head.cfg + +INCLUDE archiso_pxe-linux.cfg + +INCLUDE archiso_tail.cfg diff --git a/configs/syslinux/archiso_sys-linux.cfg b/configs/syslinux/archiso_sys-linux.cfg new file mode 100644 index 0000000..7c0c1ca --- /dev/null +++ b/configs/syslinux/archiso_sys-linux.cfg @@ -0,0 +1,20 @@ +LABEL arch64 +TEXT HELP +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 +APPEND archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% quiet splash + +# Accessibility boot option +LABEL arch64speech +TEXT HELP +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 +APPEND archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% accessibility=on diff --git a/configs/syslinux/archiso_sys.cfg b/configs/syslinux/archiso_sys.cfg new file mode 100644 index 0000000..d93bcfe --- /dev/null +++ b/configs/syslinux/archiso_sys.cfg @@ -0,0 +1,8 @@ +INCLUDE archiso_head.cfg + +DEFAULT arch64 +TIMEOUT 150 + +INCLUDE archiso_sys-linux.cfg + +INCLUDE archiso_tail.cfg diff --git a/configs/syslinux/archiso_tail.cfg b/configs/syslinux/archiso_tail.cfg new file mode 100644 index 0000000..e84897c --- /dev/null +++ b/configs/syslinux/archiso_tail.cfg @@ -0,0 +1,35 @@ +LABEL existing +TEXT HELP +Boot an existing operating system. +Press TAB to edit the disk and partition number to boot. +ENDTEXT +MENU LABEL Boot existing OS +COM32 chain.c32 +APPEND hd0 0 + +# https://www.memtest.org/ +LABEL memtest +MENU LABEL Run Memtest86+ (RAM test) +LINUX /boot/memtest86+/memtest + +# https://wiki.syslinux.org/wiki/index.php/Hdt_(Hardware_Detection_Tool) +LABEL hdt +MENU LABEL Hardware Information (HDT) +COM32 hdt.c32 +APPEND modules_alias=hdt/modalias.gz pciids=hdt/pciids.gz + +LABEL reboot +TEXT HELP +Reboot computer. +The computer's firmware must support APM. +ENDTEXT +MENU LABEL Reboot +COM32 reboot.c32 + +LABEL poweroff +TEXT HELP +Power off computer. +The computer's firmware must support APM. +ENDTEXT +MENU LABEL Power Off +COM32 poweroff.c32 diff --git a/configs/syslinux/syslinux.cfg b/configs/syslinux/syslinux.cfg new file mode 100644 index 0000000..cbda72f --- /dev/null +++ b/configs/syslinux/syslinux.cfg @@ -0,0 +1,11 @@ +DEFAULT select + +LABEL select +COM32 whichsys.c32 +APPEND -pxe- pxe -sys- sys -iso- sys + +LABEL pxe +CONFIG archiso_pxe.cfg + +LABEL sys +CONFIG archiso_sys.cfg