diff --git a/install.sh b/install.sh index 590f1b3..caac8d6 100644 --- a/install.sh +++ b/install.sh @@ -14,6 +14,10 @@ read driveName ( 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 # Set default partition number. echo # Set default first sector. @@ -25,6 +29,12 @@ echo w # write changes. # List the new partitions. lsblk -f +# Format the partitions : +echo "----------" +echo "" +echo "Which is the EFI partition?" +read efiName + echo "" echo "Which is the root partition?" read rootName @@ -35,6 +45,9 @@ echo "1) Yes" echo "2) No" read hibState +# Create EFI partition +sudo mkfs.fat -F32 -n EFI $efiName + # Encrypt the root partition sudo cryptsetup luksFormat -v -s 512 -h sha512 $rootName