|
|
@ -21,20 +21,20 @@ apt-get -y install mdadm cryptsetup systemd systemd-sysv dropbear
|
|
|
|
mdadm --examine --scan | perl -pe 's/.*\/dev\/md\/?([0-9]+) .*UUID\=(.+?) .*/ARRAY \/dev\/md$1 UUID=$2/' > /etc/mdadm/mdadm.conf
|
|
|
|
mdadm --examine --scan | perl -pe 's/.*\/dev\/md\/?([0-9]+) .*UUID\=(.+?) .*/ARRAY \/dev\/md$1 UUID=$2/' > /etc/mdadm/mdadm.conf
|
|
|
|
|
|
|
|
|
|
|
|
# concat user keys for cryptsetup unlocking at boot
|
|
|
|
# concat user keys for cryptsetup unlocking at boot
|
|
|
|
cat /authorized_keys/* > /etc/dropbear-initramfs/authorized_keys
|
|
|
|
cat /hardware-setup/authorized_keys/* > /etc/dropbear-initramfs/authorized_keys
|
|
|
|
|
|
|
|
|
|
|
|
# after cryptsetup, mdadm, ... because of update-initramfs
|
|
|
|
# after cryptsetup, mdadm, ... because of update-initramfs
|
|
|
|
apt-get -y install linux-image-amd64
|
|
|
|
apt-get -y install linux-image-amd64
|
|
|
|
|
|
|
|
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get -y install grub-pc
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get -y install grub-pc
|
|
|
|
/grub.sh
|
|
|
|
/hardware-setup/grub.sh
|
|
|
|
update-grub
|
|
|
|
update-grub
|
|
|
|
|
|
|
|
|
|
|
|
### users
|
|
|
|
### users
|
|
|
|
|
|
|
|
|
|
|
|
apt-get -y install sudo
|
|
|
|
apt-get -y install sudo
|
|
|
|
|
|
|
|
|
|
|
|
for key in /authorized_keys/*; do
|
|
|
|
for key in /hardware-setup/authorized_keys/*; do
|
|
|
|
user=$(basename "$key")
|
|
|
|
user=$(basename "$key")
|
|
|
|
|
|
|
|
|
|
|
|
adduser --gecos '' --disabled-password "$user"
|
|
|
|
adduser --gecos '' --disabled-password "$user"
|
|
|
@ -50,7 +50,7 @@ done
|
|
|
|
|
|
|
|
|
|
|
|
# add docker key
|
|
|
|
# add docker key
|
|
|
|
apt-get -y install gnupg2
|
|
|
|
apt-get -y install gnupg2
|
|
|
|
apt-key add docker.key
|
|
|
|
apt-key add /hardware-setup/docker.key
|
|
|
|
apt-get -y --purge autoremove gnupg2
|
|
|
|
apt-get -y --purge autoremove gnupg2
|
|
|
|
|
|
|
|
|
|
|
|
echo 'deb https://download.docker.com/linux/debian buster stable' > /etc/apt/sources.list.d/docker.list
|
|
|
|
echo 'deb https://download.docker.com/linux/debian buster stable' > /etc/apt/sources.list.d/docker.list
|
|
|
|