master
root 7 years ago
parent 90e0c74046
commit 10826eebef

@ -1,5 +1,5 @@
#!/bin/bash
set -e
echo 'grub-pc/install_devices multiselect /dev/sda, /dev/sdb' | debconf-set-selections
grub-install /dev/sda
grub-install /dev/sdb

@ -13,24 +13,22 @@ echo 'locales locales/locales_to_be_generated multiselect en_US.UTF-8 UTF-8' | d
apt-get -y install locales
# mdadm
### boot
apt-get -y install mdadm
apt-get -y install mdadm cryptsetup btrfs-tools
# after cryptsetup, mdadm, ... because of update-initramfs
apt-get -y install linux-image-amd64
#replace rescue system hostname with real hostname
# replace rescue system hostname with real hostname
mdadm --examine --scan | perl -pe 's/name\=.*?:/name='"$(cat /etc/hostname)"':/' > /etc/mdadm/mdadm.conf
# boot
DEBIAN_FRONTEND=noninteractive apt-get -y install grub-pc
/grub.sh
apt-get -y install linux-image-amd64
apt-get -y install grub-pc
# Docker
### Docker
#add docker key
# add docker key
apt-get -y install gnupg2
apt-key add docker.key
apt-get -y --purge autoremove gnupg2
@ -41,10 +39,9 @@ apt-get update
apt-get -y install docker-ce
# tbd
### tbd
apt-get -y install \
systemd \
dropbear \
btrfs-utils \
cryptsetup
man-db

Loading…
Cancel
Save