|
|
@ -4,9 +4,11 @@ set -e
|
|
|
|
|
|
|
|
|
|
|
|
apt-get -y install mdadm btrfs-tools
|
|
|
|
apt-get -y install mdadm btrfs-tools
|
|
|
|
|
|
|
|
|
|
|
|
"./parted/${1}.sh"
|
|
|
|
"./parted/${1}.sh" # "returns" /dev/md0 as root device
|
|
|
|
|
|
|
|
|
|
|
|
cryptsetup luksFormat /dev/md0
|
|
|
|
read md0pwd
|
|
|
|
|
|
|
|
echo -n $md0pwd | cryptsetup -q luksFormat /dev/md0
|
|
|
|
|
|
|
|
unset md0pwd
|
|
|
|
cryptsetup open --type luks /dev/md0 md0-unlocked
|
|
|
|
cryptsetup open --type luks /dev/md0 md0-unlocked
|
|
|
|
|
|
|
|
|
|
|
|
mkfs.btrfs /dev/mapper/md0-unlocked
|
|
|
|
mkfs.btrfs /dev/mapper/md0-unlocked
|
|
|
|