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
bd1745d03c
commit
a45782b7c8
1 changed files with 13 additions and 0 deletions
13
install.sh
13
install.sh
|
@ -14,6 +14,10 @@ read driveName
|
||||||
|
|
||||||
(
|
(
|
||||||
echo g # Create new GPT partition table
|
echo g # Create new GPT partition table
|
||||||
|
echo n # Create new partition (for EFI).
|
||||||
|
echo # Set default partition number.
|
||||||
|
echo # Set default first sector.
|
||||||
|
echo +1G # Set +1G as last sector.
|
||||||
echo n # Create new partition (for root).
|
echo n # Create new partition (for root).
|
||||||
echo # Set default partition number.
|
echo # Set default partition number.
|
||||||
echo # Set default first sector.
|
echo # Set default first sector.
|
||||||
|
@ -25,6 +29,12 @@ echo w # write changes.
|
||||||
# List the new partitions.
|
# List the new partitions.
|
||||||
lsblk -f
|
lsblk -f
|
||||||
|
|
||||||
|
# Format the partitions :
|
||||||
|
echo "----------"
|
||||||
|
echo ""
|
||||||
|
echo "Which is the EFI partition?"
|
||||||
|
read efiName
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Which is the root partition?"
|
echo "Which is the root partition?"
|
||||||
read rootName
|
read rootName
|
||||||
|
@ -35,6 +45,9 @@ echo "1) Yes"
|
||||||
echo "2) No"
|
echo "2) No"
|
||||||
read hibState
|
read hibState
|
||||||
|
|
||||||
|
# Create EFI partition
|
||||||
|
sudo mkfs.fat -F32 -n EFI $efiName
|
||||||
|
|
||||||
# Encrypt the root partition
|
# Encrypt the root partition
|
||||||
sudo cryptsetup luksFormat -v -s 512 -h sha512 $rootName
|
sudo cryptsetup luksFormat -v -s 512 -h sha512 $rootName
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue