diff --git a/post-debootstrap-installer.sh b/post-debootstrap-installer.sh index 89df4f3..10d76f1 100755 --- a/post-debootstrap-installer.sh +++ b/post-debootstrap-installer.sh @@ -13,7 +13,9 @@ echo 'locales locales/locales_to_be_generated multiselect en_US.UTF-8 UTF-8' | d apt-get -y install locales -# mdadm.conf +# mdadm + +apt-get -y install mdadm #replace rescue system hostname with real hostname mdadm --examine --scan | perl -pe 's/name\=.*?:/name='"$(cat /etc/hostname)"':/' > /etc/mdadm/mdadm.conf @@ -23,7 +25,7 @@ mdadm --examine --scan | perl -pe 's/name\=.*?:/name='"$(cat /etc/hostname)"':/' apt-get -y install linux-image-amd64 grub-pc -update-initramfs -k all +update-initramfs -c -k all update-grub grub-install /dev/sda @@ -48,3 +50,5 @@ apt-get -y install docker-ce apt-get -y install \ systemd \ dropbear \ + btrfs-utils \ + cryptsetup diff --git a/setup.sh b/setup.sh index 0f8eea5..3e76218 100755 --- a/setup.sh +++ b/setup.sh @@ -39,7 +39,7 @@ mount -t proc none "$chroot/proc" mount -t sysfs none "$chroot/sys" mount -o bind /dev "$chroot/dev" -cd configs +cd config cp -a * "$chroot" cd ..