Update encrypt.sh

This commit is contained in:
proledatarian 2022-02-12 17:21:17 +00:00
parent 675870cca7
commit e1c9f49e94
1 changed files with 24 additions and 2 deletions

View File

@ -46,5 +46,27 @@ echo "What size should your root partition have?"
echo "Creating a $root GB root volume."
echo -e
lvcreate -L "${root}G" -n root main
lvcreate -l 100%FREE -n home main
lvcreate -L ${root}G -n root main &&
lvcreate -l 100%FREE -n home main &&
echo -e
echo "Logical volumes successfully created."
echo -e
echo "Creating the filesystem."
echo -e
boot=$(</tmp/disk)1
mkfs.fat -F 32 -n UEFI /dev/$boot &&
echo "Filesystem for boot successfully created."
echo -e
mkfs.ext4 -L root /dev/mapper/main-root &&
echo "Filesystem for root successfully created."
echo -e
mkfs.ext4 -L home /dev/mapper/main-home &&
echo "Filesystem for home successfully created."
echo -e