mirror of
https://gitlab.com/prism7/archery.git
synced 2026-04-28 09:27:35 +02:00
Change: The 'revise' stage has been moved.
If no encryption has been selected: The stage now takes place after packages validation, so if any validation issues arise or a different setup is desired there will always be alternatives offered.
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: 1.1.1
|
# Version: 1.1.2
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
###################################################################################################
|
###################################################################################################
|
||||||
@@ -356,6 +356,7 @@ cnfg() {
|
|||||||
completion() {
|
completion() {
|
||||||
sleep 0.2
|
sleep 0.2
|
||||||
line3
|
line3
|
||||||
|
line2
|
||||||
GREENBG "************************************************************************************************* "
|
GREENBG "************************************************************************************************* "
|
||||||
GREENBG " "
|
GREENBG " "
|
||||||
GREENBG " ### Installation Completed ### "
|
GREENBG " ### Installation Completed ### "
|
||||||
@@ -4891,7 +4892,6 @@ instl() {
|
|||||||
|
|
||||||
if [[ "${encrypt}" == "no" ]]; then
|
if [[ "${encrypt}" == "no" ]]; then
|
||||||
until set_mode; do : ; done
|
until set_mode; do : ; done
|
||||||
until confirm_status; do : ; done
|
|
||||||
elif [[ "${encrypt}" == "yes" ]]; then
|
elif [[ "${encrypt}" == "yes" ]]; then
|
||||||
until sec_erase; do : ; done
|
until sec_erase; do : ; done
|
||||||
until luks; do : ; done
|
until luks; do : ; done
|
||||||
@@ -5163,6 +5163,7 @@ ${magenta}###${nc}----------------------------------------${magenta}[ ${bwhite}A
|
|||||||
"
|
"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
keypress
|
||||||
}
|
}
|
||||||
###################################################################################################
|
###################################################################################################
|
||||||
manual_mode() {
|
manual_mode() {
|
||||||
@@ -5747,6 +5748,7 @@ ${magenta}###${nc}-------------------------------${magenta}[ ${bwhite}Confirm In
|
|||||||
|
|
||||||
if [[ "${agree}" == "yes" ]]; then
|
if [[ "${agree}" == "yes" ]]; then
|
||||||
ok
|
ok
|
||||||
|
line3
|
||||||
return 0
|
return 0
|
||||||
elif [[ "${agree}" == "no" ]]; then
|
elif [[ "${agree}" == "no" ]]; then
|
||||||
unmount
|
unmount
|
||||||
@@ -5760,9 +5762,10 @@ ${magenta}###${nc}-------------------------------${magenta}[ ${bwhite}Confirm In
|
|||||||
revise() {
|
revise() {
|
||||||
|
|
||||||
revision="y"
|
revision="y"
|
||||||
|
gfxpkgs=()
|
||||||
|
validpkgs=()
|
||||||
reset=(xbootloader="" desktop="" terminal="" custompkgs="" customservices="" cust_bootopts="" REGDOM="" autoroot="" autoxboot="" autohome="" autoswap="" lowlat="" nogsp="" sanity="" partok="" preset="" set_optm="" ask_param="" kill_watchdog="" genoptm="" desk_setup="" devel="" web="" web_pkg="" web_aur="" web_slct="" oomd="" irqbalance="" thermald="" rngd="" rtkit="" tlp="" CRYPTPASS="" CRYPTPASS2="" askoptm="" gptslct="" gptok="" gptabort="" nvdprop="" nowarning="" hometype="" homeform="" smartpart="" LuksParts="")
|
reset=(xbootloader="" desktop="" terminal="" custompkgs="" customservices="" cust_bootopts="" REGDOM="" autoroot="" autoxboot="" autohome="" autoswap="" lowlat="" nogsp="" sanity="" partok="" preset="" set_optm="" ask_param="" kill_watchdog="" genoptm="" desk_setup="" devel="" web="" web_pkg="" web_aur="" web_slct="" oomd="" irqbalance="" thermald="" rngd="" rtkit="" tlp="" CRYPTPASS="" CRYPTPASS2="" askoptm="" gptslct="" gptok="" gptabort="" nvdprop="" nowarning="" hometype="" homeform="" smartpart="" LuksParts="")
|
||||||
export "${reset[@]}"
|
export "${reset[@]}"
|
||||||
gfxpkgs=()
|
|
||||||
instl
|
instl
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -6012,6 +6015,7 @@ ${magenta}###${nc}-------------------------------------${magenta}[ ${bwhite}LUKS
|
|||||||
|
|
||||||
==> [${green}Filesystems OK${nc}]
|
==> [${green}Filesystems OK${nc}]
|
||||||
"
|
"
|
||||||
|
keypress
|
||||||
sleep 0.2
|
sleep 0.2
|
||||||
CYAN "
|
CYAN "
|
||||||
###${nc}---------------------------------------------${cyan}[ ${bwhite}FILESYSTEM OVERVIEW ${nc}${cyan}]${nc}---------------------------------------------${cyan}###
|
###${nc}---------------------------------------------${cyan}[ ${bwhite}FILESYSTEM OVERVIEW ${nc}${cyan}]${nc}---------------------------------------------${cyan}###
|
||||||
@@ -6101,48 +6105,8 @@ Enter [y/N]: "
|
|||||||
ok
|
ok
|
||||||
}
|
}
|
||||||
###################################################################################################
|
###################################################################################################
|
||||||
pkg_validation() {
|
pkg_collection() {
|
||||||
|
|
||||||
local prompt="Arch Packages Validation"
|
|
||||||
local stage_prompt="Arch Packages Validation"
|
|
||||||
sleep 0.2
|
|
||||||
YELLOWL "
|
|
||||||
------------------------------------------
|
|
||||||
### ${bwhite}Validating Installation Packages ${yellowl}###
|
|
||||||
------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
"
|
|
||||||
validpkgs+=("${deskpkgs}")
|
|
||||||
echo "${validpkgs[*]} ${web_aur}"
|
|
||||||
valids="${validpkgs[*]}"
|
|
||||||
line2
|
|
||||||
if pacman -Syy > "${void}" 2>&1 2> "${log}" && pacman -Spd ${valids} > "${void}" 2>&1 2> "${log}"; then
|
|
||||||
ok
|
|
||||||
if [[ -n "${web_aur}" ]]; then
|
|
||||||
local prompt="AUR Package Validation"
|
|
||||||
local stage_prompt="AUR Package Validation"
|
|
||||||
if pacman -S git --noconfirm > "${void}" 2>&1 2> "${log}" && git clone --branch "${web_aur}" --single-branch https://github.com/archlinux/aur.git "${web_aur}" > "${void}" 2>&1 2> "${log}" && rm -R "${web_aur}"; then
|
|
||||||
ok
|
|
||||||
else
|
|
||||||
stage_fail
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
stage_fail
|
|
||||||
fi
|
|
||||||
keypress
|
|
||||||
}
|
|
||||||
###################################################################################################
|
|
||||||
pacstrap_system() {
|
|
||||||
|
|
||||||
sleep 0.2
|
|
||||||
NC "
|
|
||||||
|
|
||||||
|
|
||||||
${magenta}###${nc}-------------------------------------${magenta}[ ${bwhite}Pacstrap System${nc} ${magenta}]${nc}-------------------------------------${magenta}###
|
|
||||||
"
|
|
||||||
installing
|
|
||||||
gfxpkgs_set
|
gfxpkgs_set
|
||||||
|
|
||||||
if [[ "${bootloader}" == "2" ]]; then
|
if [[ "${bootloader}" == "2" ]]; then
|
||||||
@@ -6185,7 +6149,7 @@ ${magenta}###${nc}-------------------------------------${magenta}[ ${bwhite}Pacs
|
|||||||
4) # Gnome Lite Desktop:
|
4) # Gnome Lite Desktop:
|
||||||
deskpkgs="${basepkgs[*]} dconf-editor file-roller gdm gnome-browser-connector gnome-calculator gnome-clocks gnome-console gnome-control-center gnome-disk-utility gnome-keyring gnome-menus gnome-shell-extensions gnome-system-monitor gnome-text-editor gnome-tweaks gnome-user-share gvfs gvfs-afc gvfs-mtp gvfs-smb loupe papers sushi dosfstools glib2-devel gparted ntfs-3g power-profiles-daemon unrar unzip xorg-xhost zip"
|
deskpkgs="${basepkgs[*]} dconf-editor file-roller gdm gnome-browser-connector gnome-calculator gnome-clocks gnome-console gnome-control-center gnome-disk-utility gnome-keyring gnome-menus gnome-shell-extensions gnome-system-monitor gnome-text-editor gnome-tweaks gnome-user-share gvfs gvfs-afc gvfs-mtp gvfs-smb loupe papers sushi dosfstools glib2-devel gparted ntfs-3g power-profiles-daemon unrar unzip xorg-xhost zip"
|
||||||
displaymanager="gdm" ;;
|
displaymanager="gdm" ;;
|
||||||
|
|
||||||
5) # Xfce Desktop:
|
5) # Xfce Desktop:
|
||||||
deskpkgs="${basepkgs[*]} blueman catfish ffmpegthumbnailer gvfs gvfs-afc gvfs-mtp gvfs-smb libgsf libopenraw lightdm-gtk-greeter mousepad mugshot network-manager-applet pavucontrol poppler-glib ristretto thunar-archive-plugin thunar-media-tags-plugin thunar-shares-plugin xfce4 xfce4-artwork xfce4-battery-plugin xfce4-clipman-plugin xfce4-datetime-plugin xfce4-indicator-plugin xfce4-mount-plugin xfce4-power-manager xfce4-pulseaudio-plugin xfce4-screensaver xfce4-screenshooter xfce4-taskmanager xfce4-whiskermenu-plugin xfce4-power-manager xiccd"
|
deskpkgs="${basepkgs[*]} blueman catfish ffmpegthumbnailer gvfs gvfs-afc gvfs-mtp gvfs-smb libgsf libopenraw lightdm-gtk-greeter mousepad mugshot network-manager-applet pavucontrol poppler-glib ristretto thunar-archive-plugin thunar-media-tags-plugin thunar-shares-plugin xfce4 xfce4-artwork xfce4-battery-plugin xfce4-clipman-plugin xfce4-datetime-plugin xfce4-indicator-plugin xfce4-mount-plugin xfce4-power-manager xfce4-pulseaudio-plugin xfce4-screensaver xfce4-screenshooter xfce4-taskmanager xfce4-whiskermenu-plugin xfce4-power-manager xiccd"
|
||||||
displaymanager="lightdm" ;;
|
displaymanager="lightdm" ;;
|
||||||
@@ -6234,9 +6198,54 @@ ${magenta}###${nc}-------------------------------------${magenta}[ ${bwhite}Pacs
|
|||||||
deskpkgs="${basepkgs[*]} cosmic cosmic-player dconf gnome-keyring gvfs gvfs-dnssd gvfs-nfs gvfs-smb packagekit power-profiles-daemon pulseaudio-alsa"
|
deskpkgs="${basepkgs[*]} cosmic cosmic-player dconf gnome-keyring gvfs gvfs-dnssd gvfs-nfs gvfs-smb packagekit power-profiles-daemon pulseaudio-alsa"
|
||||||
displaymanager="cosmic-greeter" ;;
|
displaymanager="cosmic-greeter" ;;
|
||||||
esac
|
esac
|
||||||
|
}
|
||||||
|
###################################################################################################
|
||||||
|
pkg_validation() {
|
||||||
|
|
||||||
|
local prompt="Arch Packages Validation"
|
||||||
|
local stage_prompt="Arch Packages Validation"
|
||||||
|
sleep 0.2
|
||||||
|
YELLOWL "
|
||||||
|
------------------------------------------
|
||||||
|
### ${bwhite}Validating Installation Packages ${yellowl}###
|
||||||
|
------------------------------------------
|
||||||
|
"
|
||||||
|
validpkgs+=("${deskpkgs}")
|
||||||
|
valids="${validpkgs[*]}"
|
||||||
|
line2
|
||||||
|
if pacman -Syy > "${void}" 2>&1 2> "${log}" && pacman -Spd ${valids} > "${void}" 2>&1 2> "${log}"; then
|
||||||
|
ok
|
||||||
|
if [[ -n "${web_aur}" ]]; then
|
||||||
|
local prompt="AUR Package Validation"
|
||||||
|
local stage_prompt="AUR Package Validation"
|
||||||
|
if pacman -S git --noconfirm > "${void}" 2>&1 2> "${log}" && git clone --branch "${web_aur}" --single-branch https://github.com/archlinux/aur.git "${web_aur}" > "${void}" 2>&1 2> "${log}" && rm -R "${web_aur}"; then
|
||||||
|
ok
|
||||||
|
else
|
||||||
|
stage_fail
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
stage_fail
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "${encrypt}" == "no" ]]; then
|
||||||
|
until confirm_status; do : ; done
|
||||||
|
elif [[ "${encrypt}" == "yes" ]]; then
|
||||||
|
keypress
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
###################################################################################################
|
||||||
|
pacstrap_system() {
|
||||||
|
|
||||||
|
sleep 0.2
|
||||||
|
NC "
|
||||||
|
|
||||||
|
|
||||||
|
${magenta}###${nc}-------------------------------------${magenta}[ ${bwhite}Pacstrap System${nc} ${magenta}]${nc}-------------------------------------${magenta}###
|
||||||
|
"
|
||||||
|
installing
|
||||||
|
pkg_collection
|
||||||
pkg_validation
|
pkg_validation
|
||||||
|
|
||||||
if pacstrap -K /mnt ${deskpkgs} 2> "${log}" ; then
|
if pacstrap -K /mnt ${deskpkgs} 2> "${log}" ; then
|
||||||
local prompt="Pacstrap System"
|
local prompt="Pacstrap System"
|
||||||
local stage_prompt="Pacstrap System"
|
local stage_prompt="Pacstrap System"
|
||||||
|
|||||||
Reference in New Issue
Block a user