mirror of
https://gitlab.com/prism7/archery.git
synced 2026-04-28 09:27:35 +02:00
Change: Now, if 'Revise' the installation has been selected, the 'Select Web Browser' stage will be omitted when unnecessary.
Change: The parameters under which an UKI will not be created have been re-defined. Change: The 'Select Swap' stage has been simplified.
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Amelia Installer
|
# Amelia Installer
|
||||||
# Source: https://gitlab.com/prism7/archery
|
# Source: https://gitlab.com/prism7/archery
|
||||||
# Version: 9.9.7
|
# Version: 9.9.8
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
###################################################################################################
|
###################################################################################################
|
||||||
@@ -1511,13 +1511,11 @@ ${magenta}###${nc}-------------------------------------${magenta}[ ${bwhite}Swap
|
|||||||
|
|
||||||
[2] Swapfile
|
[2] Swapfile
|
||||||
|
|
||||||
[3] Zram Swap
|
[3] Zram Swap "
|
||||||
|
|
||||||
[4] None "
|
|
||||||
BLUE "
|
BLUE "
|
||||||
|
|
||||||
|
|
||||||
Enter a number: "
|
Enter a number ${bwhite}(empty to skip)${blue}: "
|
||||||
read -r -p "
|
read -r -p "
|
||||||
==> " swapmode
|
==> " swapmode
|
||||||
echo
|
echo
|
||||||
@@ -1551,15 +1549,12 @@ Enter a number: "
|
|||||||
|
|
||||||
### Zram Swap has been selected
|
### Zram Swap has been selected
|
||||||
" ;;
|
" ;;
|
||||||
4)
|
"")
|
||||||
sleep 0.2
|
sleep 0.2
|
||||||
YELLOW "
|
YELLOW "
|
||||||
|
|
||||||
### No Swap will be used "
|
### No Swap will be used "
|
||||||
skip ;;
|
skip ;;
|
||||||
"")
|
|
||||||
choice
|
|
||||||
return 1 ;;
|
|
||||||
*)
|
*)
|
||||||
invalid
|
invalid
|
||||||
return 1 ;;
|
return 1 ;;
|
||||||
@@ -3429,7 +3424,6 @@ Enter [y/n]: "
|
|||||||
|
|
||||||
case "${multibooting}" in
|
case "${multibooting}" in
|
||||||
y)
|
y)
|
||||||
uki="n"
|
|
||||||
sleep 0.2
|
sleep 0.2
|
||||||
YELLOW "
|
YELLOW "
|
||||||
|
|
||||||
@@ -5872,7 +5866,9 @@ revise() {
|
|||||||
fi
|
fi
|
||||||
until dsktp_slct; do : ; done
|
until dsktp_slct; do : ; done
|
||||||
until base_devel; do : ; done
|
until base_devel; do : ; done
|
||||||
|
if [[ ! "${desktop}" =~ ^(11|12)$ ]]; then
|
||||||
until web_browser; do : ; done
|
until web_browser; do : ; done
|
||||||
|
fi
|
||||||
if [[ "${vendor}" != "Virtual Machine" ]]; then
|
if [[ "${vendor}" != "Virtual Machine" ]]; then
|
||||||
until print_scan; do : ; done
|
until print_scan; do : ; done
|
||||||
until boot_entr; do : ; done
|
until boot_entr; do : ; done
|
||||||
@@ -6512,7 +6508,7 @@ SDBOOT_INSTL
|
|||||||
stage_fail
|
stage_fail
|
||||||
fi
|
fi
|
||||||
elif [[ "${xbootloader}" == "yes" ]]; then
|
elif [[ "${xbootloader}" == "yes" ]]; then
|
||||||
if arch-chroot /mnt <<-SD_XBOOTLDR_INSTL > "${void}" 2>&1 2> "${log}" ; then
|
if arch-chroot /mnt <<-SDBOOT_XBOOTLDR_INSTL > "${void}" 2>&1 2> "${log}" ; then
|
||||||
bootctl --esp-path=/efi --boot-path=/boot install || exit
|
bootctl --esp-path=/efi --boot-path=/boot install || exit
|
||||||
cat <<-LOADER_CFG > ${btldr_esp_mount}/loader/loader.conf || exit
|
cat <<-LOADER_CFG > ${btldr_esp_mount}/loader/loader.conf || exit
|
||||||
default arch.conf
|
default arch.conf
|
||||||
@@ -6527,7 +6523,7 @@ LOADER_CFG
|
|||||||
options rw ${boot_opts[*]}
|
options rw ${boot_opts[*]}
|
||||||
ENTRY_CFG
|
ENTRY_CFG
|
||||||
systemctl enable systemd-boot-update || exit
|
systemctl enable systemd-boot-update || exit
|
||||||
SD_XBOOTLDR_INSTL
|
SDBOOT_XBOOTLDR_INSTL
|
||||||
stage_ok
|
stage_ok
|
||||||
else
|
else
|
||||||
stage_fail
|
stage_fail
|
||||||
@@ -7198,6 +7194,10 @@ GRUB_FALLBACK_SEC_SIGN
|
|||||||
###################################################################################################
|
###################################################################################################
|
||||||
set_vars() {
|
set_vars() {
|
||||||
|
|
||||||
|
if [[ "${multibooting}" == "y" && "${xbootloader}" == "yes" ]]; then
|
||||||
|
uki="n"
|
||||||
|
fi
|
||||||
|
|
||||||
# Mkinitcpio Modules/Binaries/Hooks
|
# Mkinitcpio Modules/Binaries/Hooks
|
||||||
MODULES=()
|
MODULES=()
|
||||||
BINARIES=()
|
BINARIES=()
|
||||||
|
|||||||
Reference in New Issue
Block a user