Add Arch helper scripts

This commit is contained in:
Sandro Keil
2018-12-29 13:18:48 +01:00
parent c9882d01d8
commit f27e6a0bf8
7 changed files with 111 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -e
SCRIPT_NAME=`basename "$0"`
echo "=========== ${SCRIPT_NAME} ==========="
pvcreate /dev/mapper/cryptlvm
vgcreate MyVolGroup /dev/mapper/cryptlvm
lvcreate -L 20G MyVolGroup -n root
lvcreate -l 100%FREE MyVolGroup -n home
mkfs.ext4 /dev/MyVolGroup/root
mkfs.ext4 /dev/MyVolGroup/home
mount /dev/MyVolGroup/root /mnt
mkdir /mnt/home
mount /dev/MyVolGroup/home /mnt/home
echo ""
echo "====================="
echo "Proceed with chapter 04: Encrypted boot partition"