master
root 7 years ago
parent 90e0c74046
commit 10826eebef

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

@ -13,22 +13,20 @@ echo 'locales locales/locales_to_be_generated multiselect en_US.UTF-8 UTF-8' | d
apt-get -y install locales 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 mdadm --examine --scan | perl -pe 's/name\=.*?:/name='"$(cat /etc/hostname)"':/' > /etc/mdadm/mdadm.conf
DEBIAN_FRONTEND=noninteractive apt-get -y install grub-pc
# boot
/grub.sh /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-get -y install gnupg2
@ -41,10 +39,9 @@ apt-get update
apt-get -y install docker-ce apt-get -y install docker-ce
# tbd ### tbd
apt-get -y install \ apt-get -y install \
systemd \ systemd \
dropbear \ dropbear \
btrfs-utils \ man-db
cryptsetup

Loading…
Cancel
Save