diff --git a/hardware/ovh/grub.sh b/hardware/ovh/grub.sh old mode 100644 new mode 100755 index 76fd73e..6eba726 --- a/hardware/ovh/grub.sh +++ b/hardware/ovh/grub.sh @@ -2,5 +2,4 @@ set -e - - +echo 'grub-pc/install_devices multiselect /dev/sda, /dev/sdb' | debconf-set-selections diff --git a/post-debootstrap-installer.sh b/post-debootstrap-installer.sh index 30eeee3..7de86fe 100755 --- a/post-debootstrap-installer.sh +++ b/post-debootstrap-installer.sh @@ -23,7 +23,9 @@ mdadm --examine --scan | perl -pe 's/name\=.*?:/name='"$(cat /etc/hostname)"':/' # boot -apt-get -y install linux-image-amd64 grub-pc +/grub.sh +apt-get -y install linux-image-amd64 +apt-get -y install grub-pc # Docker diff --git a/setup.sh b/setup.sh index 0d20b2e..a7a06e0 100755 --- a/setup.sh +++ b/setup.sh @@ -39,10 +39,18 @@ mount -t proc none "$chroot/proc" mount -t sysfs none "$chroot/sys" mount -o bind /dev "$chroot/dev" + +# copy fstab, crypttab, ... cd config cp -a * "$chroot" cd .. +# copy parted.sh, grub.sh, ... +cd "hardware/${1}" +cp -a * "$chroot" +cd ../.. + +# copy a couple of other files cp -a docker.key \ post-debootstrap-installer.sh \ "$chroot"