This commit is contained in:
Your Name 2024-02-17 15:39:18 -07:00
parent 67932fd5ac
commit 1d215afcda

View File

@ -472,6 +472,8 @@ tweaks() {
echo "[2] Chroot into existing OS"
echo "[3] Compile the Kernel"
echo "[4] Upgrade gentoo-kde.sh"
echo "[5] Upgrade OS and take Snapshot"
echo "[6] Initialize Disk"
echo
read -p 'Your Choice: ' choice
if [[ $choice = 1 ]]; then
@ -494,6 +496,17 @@ tweaks() {
BASE_URL="https://mirrors.poster.place/releases/amd64/autobuilds/current-stage3-amd64-desktop-systemd-mergedusr"
wget "$BASE_URL/latest-stage3-amd64-desktop-systemd-mergedusr.txt"
wget $BASE_URL/$(cat latest-stage3-amd64-desktop-systemd-mergedusr.txt | grep tar.xz | tail -1 | cut -d '.' -f1-3 | cut -d '"' -f2 | cut -d ' ' -f1) -O /tmp/stage3.tar.xz
elif [[ $choice = 5 ]]; then
upgrade-system
elif [[ $choice = 6 ]]; then
clear
echo "[Initialize Disk]"
echo
echo
set-devices
initialize-disk
read -p "Press enter key to Continue"
menu
else
tweaks
fi
@ -542,7 +555,6 @@ menu() {
echo "[5] Backup"
echo "[6] Restore"
echo "[7] Tools and Tweaks"
echo "[8] Initialize Disk"
echo
read -p 'Your Choice: ' choice
if [[ $choice = 1 ]]; then
@ -593,15 +605,6 @@ menu() {
fi
elif [[ $choice = 7 ]]; then
tweaks
elif [[ $choice = 8 ]]; then
clear
echo "[Initialize Disk]"
echo
echo
set-devices
initialize-disk
read -p "Press enter key to Continue"
menu
else
menu
fi
@ -682,8 +685,9 @@ compile-kernel() {
time make install
}
upgrade-system(){
upgrade-system() {
snapshots
rm -f /var/db/repos/gentoo/metadata/timestamp.chk
emerge --sync
emerge -auDN @world
emerge --depclean