From 1d215afcda507d3f0998ac06930d21b218e0c60f Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 17 Feb 2024 15:39:18 -0700 Subject: [PATCH] d --- gentoo-kde.sh | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/gentoo-kde.sh b/gentoo-kde.sh index f1d9ac5..13ab455 100644 --- a/gentoo-kde.sh +++ b/gentoo-kde.sh @@ -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