mirror of
https://gitlab.com/prism7/archery.git
synced 2025-02-15 08:29:17 +01:00
Add: If the '/Root' partition is smaller than 8 Gb, the installer will now issue a warning against installation failure.
Change: The list(s) of packages to be pacstrapped/installed in the system, now derives from a versatile array, instead of the 'hard-coded' variables previously used. This is valid for all 'Vanilla' setups & the 'Custom Arch Linux' setup. Fix: A 'secboot_sign' function (Secure-Boot Signing stage) issue that was causing failure to securely sign certain ukis, has now been resolved. Change: Code re-arrangement in the 'pacstrap_system' function (Pacstrap System stage).
This commit is contained in:
parent
07cda6bd3d
commit
f60955831c
1 changed files with 69 additions and 30 deletions
99
Amelia.sh
99
Amelia.sh
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Amelia Installer
|
# Amelia Installer
|
||||||
# https://gitlab.com/prism7/archery
|
# https://gitlab.com/prism7/archery
|
||||||
# Version: 8.1.0
|
# Version: 8.2.0
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
###################################################################################################
|
###################################################################################################
|
||||||
|
@ -3245,7 +3245,31 @@ ${multi_swap}
|
||||||
#--------------------------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
if [[ -e "${root_dev}" ]]; then
|
if [[ -e "${root_dev}" ]]; then
|
||||||
rootprt="ok"
|
rootpartsize="$(lsblk -dno SIZE --bytes "${root_dev}")"
|
||||||
|
if [[ "${rootpartsize}" -ge "8589934592" ]]; then
|
||||||
|
rootprt="ok"
|
||||||
|
else
|
||||||
|
rootprt="ok"
|
||||||
|
sleep 0.2
|
||||||
|
RED "
|
||||||
|
-----------------------------------------------
|
||||||
|
### ${yellow}WARNING: /Root's size is not adequate ${red}###
|
||||||
|
-----------------------------------------------"
|
||||||
|
sleep 0.2
|
||||||
|
RED "
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
### ${yellow}Depending on the size of your setup, installation might fail ! ${red}###
|
||||||
|
------------------------------------------------------------------------"
|
||||||
|
NC "
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
${bwhite}Press any key to continue${nc}
|
||||||
|
|
||||||
|
|
||||||
|
"
|
||||||
|
read -r -s -n 1
|
||||||
|
fi
|
||||||
if [[ "${autoroot}" == "y" ]]; then
|
if [[ "${autoroot}" == "y" ]]; then
|
||||||
if [[ "${presetpart}" == "y" || "${smartpart}" == "y" ]]; then
|
if [[ "${presetpart}" == "y" || "${smartpart}" == "y" ]]; then
|
||||||
sleep 0.2
|
sleep 0.2
|
||||||
|
@ -5217,8 +5241,8 @@ Enter a number: "
|
||||||
###################################################################################################
|
###################################################################################################
|
||||||
pacstrap_system() {
|
pacstrap_system() {
|
||||||
|
|
||||||
local prompt="Pacstrap System"
|
|
||||||
basepkgs=(base efibootmgr nano pkgstats sudo vim "${fstools}" "${kernel}" "${microcode}")
|
basepkgs=(base efibootmgr nano pkgstats sudo vim "${fstools}" "${kernel}" "${microcode}")
|
||||||
|
local prompt="Pacstrap System"
|
||||||
sleep 0.2
|
sleep 0.2
|
||||||
NC "
|
NC "
|
||||||
|
|
||||||
|
@ -5235,38 +5259,31 @@ ${magenta}###${nc}-------------------------------------${magenta}[ ${bwhite}Pacs
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n "${bootldr_pkgs}" ]]; then
|
|
||||||
basepkgs+=("${bootldr_pkgs}")
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ "${vendor}" == "Virtual Machine" ]]; then
|
if [[ "${vendor}" == "Virtual Machine" ]]; then
|
||||||
basepkgs+=("${vmpkgs}")
|
basepkgs+=("${vmpkgs}")
|
||||||
else
|
else
|
||||||
basepkgs+=("linux-firmware")
|
basepkgs+=(linux-firmware)
|
||||||
fi
|
fi
|
||||||
|
if [[ -n "${bootldr_pkgs}" ]]; then
|
||||||
if [[ "${vendor}" == "Nvidia" ]]; then
|
basepkgs+=("${bootldr_pkgs}")
|
||||||
basepkgs+=("${kernel}-headers")
|
|
||||||
fi
|
fi
|
||||||
|
if [[ -n "${ukify}" ]]; then
|
||||||
if [[ -n "${vgapkgs}" ]]; then
|
basepkgs+=("${ukify}")
|
||||||
basepkgs+=("${vgapkgs}")
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n "${wireless_reg}" ]]; then
|
|
||||||
basepkgs+=("${wireless_reg}")
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -n "${devel}" ]]; then
|
|
||||||
basepkgs+=("${devel}")
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -n "${zram}" ]]; then
|
if [[ -n "${zram}" ]]; then
|
||||||
basepkgs+=("${zram}")
|
basepkgs+=("${zram}")
|
||||||
fi
|
fi
|
||||||
|
if [[ -n "${vgapkgs}" ]]; then
|
||||||
if [[ -n "${ukify}" ]]; then
|
basepkgs+=("${vgapkgs}")
|
||||||
basepkgs+=("${ukify}")
|
fi
|
||||||
|
if [[ "${vendor}" == "Nvidia" ]]; then
|
||||||
|
basepkgs+=("${kernel}-headers")
|
||||||
|
fi
|
||||||
|
if [[ -n "${devel}" ]]; then
|
||||||
|
basepkgs+=("${devel}")
|
||||||
|
fi
|
||||||
|
if [[ -n "${wireless_reg}" ]]; then
|
||||||
|
basepkgs+=("${wireless_reg}")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "${packages}" in
|
case "${packages}" in
|
||||||
|
@ -5326,11 +5343,33 @@ ${magenta}###${nc}-------------------------------------${magenta}[ ${bwhite}Pacs
|
||||||
network="NetworkManager" ;;
|
network="NetworkManager" ;;
|
||||||
|
|
||||||
12) # Custom System:
|
12) # Custom System:
|
||||||
|
custarray=(base sudo "${custompkgs}" "${fstools}" "${kernel}" "${microcode}")
|
||||||
|
|
||||||
if [[ "${vendor}" == "Virtual Machine" ]]; then
|
if [[ "${vendor}" == "Virtual Machine" ]]; then
|
||||||
deskpkgs="base sudo ${bootldr_pkgs} ${custompkgs} ${fstools} ${kernel} ${microcode} ${vmpkgs} ${greeter}"
|
custarray+=("${vmpkgs}")
|
||||||
else
|
else
|
||||||
deskpkgs="base linux-firmware sudo ${bootldr_pkgs} ${custompkgs} ${fstools} ${kernel} ${microcode} ${vgapkgs} ${wireless_reg} ${greeter}"
|
custarray+=(linux-firmware)
|
||||||
fi ;;
|
fi
|
||||||
|
if [[ -n "${bootldr_pkgs}" ]]; then
|
||||||
|
custarray+=("${bootldr_pkgs}")
|
||||||
|
fi
|
||||||
|
if [[ -n "${ukify}" ]]; then
|
||||||
|
custarray+=("${ukify}")
|
||||||
|
fi
|
||||||
|
if [[ -n "${zram}" ]]; then
|
||||||
|
custarray+=("${zram}")
|
||||||
|
fi
|
||||||
|
if [[ -n "${vgapkgs}" ]]; then
|
||||||
|
custarray+=("${vgapkgs}")
|
||||||
|
fi
|
||||||
|
if [[ "${greeternmbr}" =~ ^(1|2|3|)$ ]]; then
|
||||||
|
custarray+=("${greeter}")
|
||||||
|
fi
|
||||||
|
if [[ -n "${wireless_reg}" ]]; then
|
||||||
|
custarray+=("${wireless_reg}")
|
||||||
|
fi
|
||||||
|
|
||||||
|
deskpkgs="${custarray[*]}" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
pkg_displ
|
pkg_displ
|
||||||
|
@ -5699,7 +5738,7 @@ secboot_sign() {
|
||||||
sbctl enroll-keys -m || exit
|
sbctl enroll-keys -m || exit
|
||||||
sbctl sign -s /boot/vmlinuz-${kernel} || exit
|
sbctl sign -s /boot/vmlinuz-${kernel} || exit
|
||||||
sbctl sign -s ${btldr_esp_mount}/EFI/BOOT/BOOTX64.EFI || exit
|
sbctl sign -s ${btldr_esp_mount}/EFI/BOOT/BOOTX64.EFI || exit
|
||||||
sbctl sign -s ${btldr_esp_mount}/EFI/Linux/arch-linux.efi || exit
|
sbctl sign -s ${btldr_esp_mount}/EFI/Linux/arch-${kernel}.efi || exit
|
||||||
sbctl sign -s ${btldr_esp_mount}/EFI/systemd/systemd-bootx64.efi || exit
|
sbctl sign -s ${btldr_esp_mount}/EFI/systemd/systemd-bootx64.efi || exit
|
||||||
sbctl sign -s -o /usr/lib/systemd/boot/efi/systemd-bootx64.efi.signed /usr/lib/systemd/boot/efi/systemd-bootx64.efi || exit
|
sbctl sign -s -o /usr/lib/systemd/boot/efi/systemd-bootx64.efi.signed /usr/lib/systemd/boot/efi/systemd-bootx64.efi || exit
|
||||||
SECSIGN
|
SECSIGN
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue