diff --git a/debootstrap.sh b/debootstrap.sh index 567ada4..126a032 100755 --- a/debootstrap.sh +++ b/debootstrap.sh @@ -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 diff --git a/post-debootstrap-installer.sh b/post-debootstrap-installer.sh index eaae0a2..aef4467 100644 --- a/post-debootstrap-installer.sh +++ b/post-debootstrap-installer.sh @@ -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 diff --git a/reset.sh b/reset.sh new file mode 100755 index 0000000..2be497d --- /dev/null +++ b/reset.sh @@ -0,0 +1,5 @@ +#!/bin/bash +set -e + +dd if=/dev/zero of=/dev/sda bs=2048 count=1 +dd if=/dev/zero of=/dev/sdb bs=2048 count=1