Add a copy-to-RAM boot entry (UEFI + BIOS)

Loads airootfs.sfs into RAM at boot so the installer reads from memory
instead of a possibly-flaky USB — fixes SquashFS read errors during
unpackfs. Kept as a separate menu entry (not default) since it needs a few
GB of RAM.
This commit is contained in:
Breadway 2026-06-16 19:40:16 +08:00
parent aee05b814b
commit fbe9c9693e
2 changed files with 18 additions and 0 deletions

View file

@ -8,6 +8,19 @@ LINUX /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-linux
INITRD /%INSTALL_DIR%/boot/%ARCH%/initramfs-linux.img
APPEND archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID%
# Copy-to-RAM boot option — loads airootfs.sfs entirely into RAM, so the
# installer reads from memory rather than a possibly-flaky USB (avoids SquashFS
# read errors during unpackfs). Needs enough RAM for the image (~3 GB).
LABEL archtoram
TEXT HELP
Boot Bread OS, copying the image into RAM first.
More reliable installs from USB; needs a few GB of RAM.
ENDTEXT
MENU LABEL Bread OS install medium (%ARCH%, BIOS) ^copy to RAM
LINUX /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-linux
INITRD /%INSTALL_DIR%/boot/%ARCH%/initramfs-linux.img
APPEND archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% copytoram=y
# Accessibility boot option
LABEL archspeech
TEXT HELP