Added reset script (WIP)

master
root 7 years ago
parent 0cac864a07
commit 217519a84e

@ -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

@ -2,6 +2,10 @@
set -e 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-get -y install gnupg2
apt-key add docker.key apt-key add docker.key
echo 'deb https://download.docker.com/linux/debian stretch stable' > /etc/apt/sources.list.d/docker.list echo 'deb https://download.docker.com/linux/debian stretch stable' > /etc/apt/sources.list.d/docker.list

@ -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
Loading…
Cancel
Save