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
1c50c98b2c
commit
aa3e009add
1 changed files with 18 additions and 1 deletions
17
install.sh
17
install.sh
|
@ -43,6 +43,12 @@ echo ""
|
|||
echo "Which is the root partition?"
|
||||
read rootName
|
||||
|
||||
echo ""
|
||||
echo "Do you want Hibernation?"
|
||||
echo "1) Yes"
|
||||
echo "2) No"
|
||||
read hibState
|
||||
|
||||
# Create EFI partition
|
||||
sudo mkfs.fat -F32 -n EFI $efiName
|
||||
|
||||
|
@ -55,7 +61,18 @@ sudo cryptsetup luksOpen $rootName crypt-root
|
|||
sudo pvcreate /dev/mapper/crypt-root
|
||||
sudo vgcreate lvm /dev/mapper/crypt-root
|
||||
|
||||
if [ $hibState = 1 ]; then
|
||||
sudo lvcreate -L "$ramTotal"G -n swap lvm
|
||||
|
||||
else
|
||||
|
||||
if [ $hibState = 2 ]; then
|
||||
sudo lvcreate -L 4G -n swap lvm
|
||||
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
sudo lvcreate -l '100%FREE' -n root lvm
|
||||
|
||||
sudo cryptsetup config $rootName --label luks
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue