From 10826eebef2bf50bba411c4ca6db0fe9bfcb2645 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 11 May 2018 20:05:43 +0200 Subject: [PATCH] WIP --- hardware/ovh/grub.sh | 4 ++-- post-debootstrap-installer.sh | 23 ++++++++++------------- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/hardware/ovh/grub.sh b/hardware/ovh/grub.sh index 6eba726..f0560ad 100755 --- a/hardware/ovh/grub.sh +++ b/hardware/ovh/grub.sh @@ -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 diff --git a/post-debootstrap-installer.sh b/post-debootstrap-installer.sh index 7de86fe..20a8cbf 100755 --- a/post-debootstrap-installer.sh +++ b/post-debootstrap-installer.sh @@ -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