Three gaps left real machines booting straight into Windows after a successful install (menu empty, no GRUB entry, no NVRAM record): - os-prober was disabled (Arch default GRUB_DISABLE_OS_PROBER=true), so Windows never appeared in the generated menu; the airootfs overlay /etc/default/grub now ships GRUB_DISABLE_OS_PROBER=false. - The %post chroot often had no ESP mounted and no efivars access, so grub-install silently did nothing on real hardware; it now finds and mounts an EFI FAT32 partition (including another OS's ESP, e.g. Windows) before installing. - No safety net remained if the first attempt failed; the kickstart enables a new fws-grub-finalize.service that, on the installed system's first boot, re-installs GRUB with the --removable fallback (EFI/BOOT/BOOTX64.EFI) plus an NVRAM entry and regenerates the menu with os-prober active - automating the manual TTY repair.
42 lines
1.6 KiB
Bash
42 lines
1.6 KiB
Bash
#!/usr/bin/env bash
|
|
# shellcheck disable=SC2034
|
|
|
|
iso_name="fws"
|
|
iso_label="FWS_$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y%m)"
|
|
iso_publisher="FWS"
|
|
iso_application="FWS Live/Rescue DVD"
|
|
iso_version="$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y.%m.%d)"
|
|
install_dir="fws"
|
|
buildmodes=('iso')
|
|
bootmodes=('bios.syslinux'
|
|
'uefi.systemd-boot')
|
|
pacman_conf="pacman.conf"
|
|
airootfs_image_type="squashfs"
|
|
airootfs_image_tool_options=('-comp' 'xz' '-Xbcj' 'x86' '-b' '1M' '-Xdict-size' '1M')
|
|
bootstrap_tarball_compression=('zstd' '-c' '-T0' '--auto-threads=logical' '--long' '-19')
|
|
file_permissions=(
|
|
["/etc/shadow"]="0:0:400"
|
|
["/root"]="0:0:750"
|
|
["/root/.automated_script.sh"]="0:0:755"
|
|
["/root/.gnupg"]="0:0:700"
|
|
["/usr/local/bin/choose-mirror"]="0:0:755"
|
|
["/usr/local/bin/Installation_guide"]="0:0:755"
|
|
["/usr/local/bin/livecd-sound"]="0:0:755"
|
|
["/usr/bin/load_policy"]="0:0:755"
|
|
["/usr/bin/setstatus"]="0:0:755"
|
|
["/usr/local/bin/fws-setup-hardware"]="0:0:755"
|
|
["/usr/local/bin/fws-grub-finalize"]="0:0:755"
|
|
["/usr/local/bin/fws-keys"]="0:0:755"
|
|
["/usr/local/bin/fws-vr-setup"]="0:0:755"
|
|
["/usr/local/bin/fws-hello"]="0:0:755"
|
|
["/usr/local/bin/fws-update"]="0:0:755"
|
|
["/usr/local/bin/fws-updates-check"]="0:0:755"
|
|
["/usr/local/bin/fws-proton-ge"]="0:0:755"
|
|
["/usr/local/bin/fws-recovery"]="0:0:755"
|
|
["/usr/local/bin/fws-recovery-session"]="0:0:755"
|
|
["/usr/local/bin/fws-recovery-gui"]="0:0:755"
|
|
["/usr/local/bin/fws-powermenu"]="0:0:755"
|
|
["/usr/local/bin/fws-about"]="0:0:755"
|
|
["/etc/grub.d/42_fws-recovery"]="0:0:755"
|
|
)
|