improved script

This commit is contained in:
λmolinae 2025-05-19 18:14:23 -06:00
parent e4cdb2fced
commit c67cb23497
3 changed files with 18 additions and 6 deletions

View file

@ -4,6 +4,12 @@ dotfiles="https://git.amolinae.com/amolinae06/dotfiles.git"
software="https://git.amolinae.com/amolinae06/installer/raw/branch/main/software.csv"
postinstall="https://git.amolinae.com/amolinae06/installer/raw/branch/main/postinstall.sh"
update_alpine(){
printf "Updating alpine indexes.\n"
apk update && apk upgrade
printf "Updated successdully.\n"
}
apk_install(){
echo "installing $1"; apk add "$1" >/dev/null 2>&1
}
@ -46,7 +52,7 @@ setup_greetd(){
vt = 7
[default_session]
command = "tuigreet -t -r --cmd /home/$user/.local/bin/dwllaunch"
command = "agreety -t -r --cmd /home/$user/.local/bin/dwllaunch"
user = "greetd"
EOF
@ -88,6 +94,7 @@ setup_chroot(){
mkdir -p alpchroot/etc/apk
cp /etc/apk/repositories alpchroot/etc/apk/repositories
apk del curl
rm -rf sbin/ .PKGINFO .SIGN.RSA.alpine-devel@lists.alpinelinux.org-6165ee59.rsa.pub apk-tools-static-2.14.4-r1.apk
printf "Finished setting up chroot!\n"
}
@ -110,6 +117,7 @@ get_user(){
check_root
echo "Welcome to the installer"
update_alpine
apk_install git
get_user
read_software "$software"
@ -122,4 +130,4 @@ setup_shell
setup_bluetooth
setup_chroot
post_install "$user"
printf "Installation finished, before you reboot please install packages you need (e.g nvidia/amd drivers) \n"; exit 0
printf "Installation finished, before you reboot please install packages you need (e.g nvidia/amd drivers)\n"; exit 0