Merge pull request #231 from khaneliman/snapper-support

Snapper support, KVM packages, Sudoers fix and refactoring
This commit is contained in:
Chris Titus 2022-02-23 09:04:39 -06:00 committed by GitHub
commit 5fd8d54174
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
206 changed files with 164 additions and 57 deletions

View File

@ -1,7 +1,11 @@
#!/bin/bash
# Find the name of the folder the scripts are in
set -a
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
SCRIPTS_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"/scripts
CONFIGS_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"/configs
set +a
echo -ne "
-------------------------------------------------------------------------
█████╗ ██████╗ ██████╗██╗ ██╗████████╗██╗████████╗██╗ ██╗███████╗
@ -15,14 +19,15 @@ echo -ne "
-------------------------------------------------------------------------
Scripts are in directory named ArchTitus
"
( bash startup.sh )|& tee startup.log
source $SCRIPT_DIR/setup.conf
( bash 0-preinstall.sh )|& tee 0-preinstall.log
( arch-chroot /mnt /root/ArchTitus/1-setup.sh )|& tee 1-setup.log
( bash $SCRIPT_DIR/scripts/startup.sh )|& tee startup.log
source $CONFIGS_DIR/setup.conf
( bash $SCRIPT_DIR/scripts/0-preinstall.sh )|& tee 0-preinstall.log
( arch-chroot /mnt $HOME/ArchTitus/scripts/1-setup.sh )|& tee 1-setup.log
if [[ ! $DESKTOP_ENV == server ]]; then
( arch-chroot /mnt /usr/bin/runuser -u $USERNAME -- /home/$USERNAME/ArchTitus/2-user.sh )|& tee 2-user.log
( arch-chroot /mnt /usr/bin/runuser -u $USERNAME -- /home/$USERNAME/ArchTitus/scripts/2-user.sh )|& tee 2-user.log
fi
( arch-chroot /mnt /root/ArchTitus/3-post-setup.sh )|& tee 3-post-setup.log
( arch-chroot /mnt $HOME/ArchTitus/scripts/3-post-setup.sh )|& tee 3-post-setup.log
cp -v *.log /mnt/home/$USERNAME
echo -ne "
-------------------------------------------------------------------------

Some files were not shown because too many files have changed in this diff Show More