@ -4,9 +4,11 @@ set -e
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
mkfs.btrfs /dev/mapper/md0-unlocked
@ -2,6 +2,10 @@
set -e
echo 'console-setup console-setup/charmap47 select UTF-8' | debconf-set-selections
echo 'keyboard-configuration keyboard-configuration/variant select English (US)' | debconf-set-selections
echo 'keyboard-configuration kekeyboard-configuration keyboard-configuration/layout select English (US)' | debconf-set-selections
apt-get -y install gnupg2
apt-key add docker.key
echo 'deb https://download.docker.com/linux/debian stretch stable' > /etc/apt/sources.list.d/docker.list
@ -0,0 +1,5 @@
#!/bin/bash
dd if=/dev/zero of=/dev/sda bs=2048 count=1
dd if=/dev/zero of=/dev/sdb bs=2048 count=1