mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -06:00
Update install.sh
This commit is contained in:
parent
66e9be884a
commit
d987e56383
1 changed files with 12 additions and 11 deletions
23
install.sh
23
install.sh
|
@ -2,6 +2,9 @@
|
||||||
# then sets it as a variable for hibernation support
|
# then sets it as a variable for hibernation support
|
||||||
ramTotal=$(free -h | awk '/^Mem:/{print $2}'| awk -FG {'print$1'})
|
ramTotal=$(free -h | awk '/^Mem:/{print $2}'| awk -FG {'print$1'})
|
||||||
|
|
||||||
|
# Set append for drive automation
|
||||||
|
APPEND=""
|
||||||
|
|
||||||
# Detect and list the drives.
|
# Detect and list the drives.
|
||||||
lsblk -f
|
lsblk -f
|
||||||
|
|
||||||
|
@ -38,18 +41,16 @@ echo w # write changes.
|
||||||
# List the new partitions.
|
# List the new partitions.
|
||||||
lsblk -f
|
lsblk -f
|
||||||
|
|
||||||
echo "----------"
|
if [[ "$driveName" == "/dev/nvme"* || "$driveName" == "/dev/mmcblk0"* ]]; then
|
||||||
echo ""
|
APPEND="p"
|
||||||
echo "Which is the EFI partition?"
|
fi
|
||||||
read efiName
|
|
||||||
|
|
||||||
echo ""
|
efiName=${driveName}$APPEND
|
||||||
echo "Which is the root partition?"
|
efiName+=1
|
||||||
read rootName
|
rootName=${driveName}$APPEND
|
||||||
|
rootName+=2
|
||||||
echo ""
|
swapName=${driveName}$APPEND
|
||||||
echo "Which is the swap partition?"
|
swapName+=3
|
||||||
read swapName
|
|
||||||
|
|
||||||
# Create EFI partition
|
# Create EFI partition
|
||||||
sudo mkfs.fat -F32 -n EFI $efiName
|
sudo mkfs.fat -F32 -n EFI $efiName
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue