Update gentoo.sh
This commit is contained in:
parent
38846b2e5f
commit
37be002c45
53
gentoo.sh
53
gentoo.sh
@ -31,10 +31,10 @@ echo
|
||||
HARD_DISK=$2
|
||||
######################################
|
||||
USER="verita84"
|
||||
USER_PASSWORD="123456"
|
||||
ROOT_PASSWORD="123456"
|
||||
WIRELESS_PASSWORD='123456'
|
||||
SSID='123456'
|
||||
USER_PASSWORD="REM&rap234"
|
||||
ROOT_PASSWORD="REM&rap234"
|
||||
WIRELESS_PASSWORD='815721984'
|
||||
SSID='Tribble'
|
||||
WIRELESS_INTERFACE='wlan0'
|
||||
COMPRESSION='compress=zstd:10'
|
||||
FLATPAKS+=()
|
||||
@ -619,27 +619,34 @@ menu() {
|
||||
}
|
||||
|
||||
set-devices() {
|
||||
i=0
|
||||
while [ $i != "n" ]; do
|
||||
clear
|
||||
echo
|
||||
echo "Disks and Partitions:"
|
||||
echo
|
||||
cat /proc/partitions
|
||||
echo
|
||||
echo "Erase the line and press enter to skip to the next detected disk"
|
||||
echo
|
||||
i=$(expr $i + 1)
|
||||
read -p 'Disk Device to Use: ' -e -i $(lsblk | grep -i disk | grep -Evi 'zram|swap' | cut -d ' ' -f1 | head -$i | tail -1) device
|
||||
if [[ ! -z $device ]]; then
|
||||
i="n"
|
||||
fi
|
||||
done
|
||||
if [ -f "/tmp/disk" ]; then
|
||||
HARD_DISK=$(cat /tmp/disk | head -1)
|
||||
ROOT_NAME=$(cat /tmp/disk | tail -1)
|
||||
else
|
||||
i=0
|
||||
while [ $i != "n" ]; do
|
||||
clear
|
||||
echo
|
||||
echo "Disks and Partitions:"
|
||||
echo
|
||||
cat /proc/partitions
|
||||
echo
|
||||
echo "Erase the line and press enter to skip to the next detected disk"
|
||||
echo
|
||||
i=$(expr $i + 1)
|
||||
read -p 'Disk Device to Use: ' -e -i $(lsblk | grep -i disk | grep -Evi 'zram|swap' | cut -d ' ' -f1 | head -$i | tail -1) device
|
||||
if [[ ! -z $device ]]; then
|
||||
i="n"
|
||||
fi
|
||||
done
|
||||
|
||||
read -p 'BTRFS Root Volume name: ' -e -i "gentoo" root_name
|
||||
HARD_DISK=$device
|
||||
read -p 'BTRFS Root Volume name: ' -e -i "gentoo" root_name
|
||||
HARD_DISK=$device
|
||||
ROOT_NAME=$root_name
|
||||
echo $HARD_DISK > /tmp/disk
|
||||
echo $ROOT_NAME >> /tmp/disk
|
||||
fi
|
||||
partitionDetection
|
||||
ROOT_NAME=$root_name
|
||||
}
|
||||
|
||||
if [ "$1" = "desktop" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user