d
This commit is contained in:
parent
67932fd5ac
commit
1d215afcda
@ -472,6 +472,8 @@ tweaks() {
|
|||||||
echo "[2] Chroot into existing OS"
|
echo "[2] Chroot into existing OS"
|
||||||
echo "[3] Compile the Kernel"
|
echo "[3] Compile the Kernel"
|
||||||
echo "[4] Upgrade gentoo-kde.sh"
|
echo "[4] Upgrade gentoo-kde.sh"
|
||||||
|
echo "[5] Upgrade OS and take Snapshot"
|
||||||
|
echo "[6] Initialize Disk"
|
||||||
echo
|
echo
|
||||||
read -p 'Your Choice: ' choice
|
read -p 'Your Choice: ' choice
|
||||||
if [[ $choice = 1 ]]; then
|
if [[ $choice = 1 ]]; then
|
||||||
@ -494,6 +496,17 @@ tweaks() {
|
|||||||
BASE_URL="https://mirrors.poster.place/releases/amd64/autobuilds/current-stage3-amd64-desktop-systemd-mergedusr"
|
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/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
|
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
|
else
|
||||||
tweaks
|
tweaks
|
||||||
fi
|
fi
|
||||||
@ -542,7 +555,6 @@ menu() {
|
|||||||
echo "[5] Backup"
|
echo "[5] Backup"
|
||||||
echo "[6] Restore"
|
echo "[6] Restore"
|
||||||
echo "[7] Tools and Tweaks"
|
echo "[7] Tools and Tweaks"
|
||||||
echo "[8] Initialize Disk"
|
|
||||||
echo
|
echo
|
||||||
read -p 'Your Choice: ' choice
|
read -p 'Your Choice: ' choice
|
||||||
if [[ $choice = 1 ]]; then
|
if [[ $choice = 1 ]]; then
|
||||||
@ -593,15 +605,6 @@ menu() {
|
|||||||
fi
|
fi
|
||||||
elif [[ $choice = 7 ]]; then
|
elif [[ $choice = 7 ]]; then
|
||||||
tweaks
|
tweaks
|
||||||
elif [[ $choice = 8 ]]; then
|
|
||||||
clear
|
|
||||||
echo "[Initialize Disk]"
|
|
||||||
echo
|
|
||||||
echo
|
|
||||||
set-devices
|
|
||||||
initialize-disk
|
|
||||||
read -p "Press enter key to Continue"
|
|
||||||
menu
|
|
||||||
else
|
else
|
||||||
menu
|
menu
|
||||||
fi
|
fi
|
||||||
@ -684,6 +687,7 @@ compile-kernel() {
|
|||||||
|
|
||||||
upgrade-system() {
|
upgrade-system() {
|
||||||
snapshots
|
snapshots
|
||||||
|
rm -f /var/db/repos/gentoo/metadata/timestamp.chk
|
||||||
emerge --sync
|
emerge --sync
|
||||||
emerge -auDN @world
|
emerge -auDN @world
|
||||||
emerge --depclean
|
emerge --depclean
|
||||||
|
Loading…
Reference in New Issue
Block a user