Update encrypt.sh
This commit is contained in:
parent
675870cca7
commit
e1c9f49e94
26
encrypt.sh
26
encrypt.sh
|
@ -46,5 +46,27 @@ echo "What size should your root partition have?"
|
||||||
echo "Creating a $root GB root volume."
|
echo "Creating a $root GB root volume."
|
||||||
echo -e
|
echo -e
|
||||||
|
|
||||||
lvcreate -L "${root}G" -n root main
|
lvcreate -L ${root}G -n root main &&
|
||||||
lvcreate -l 100%FREE -n home 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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue