master
root 7 years ago
parent 38dea4bf82
commit 90e0c74046

@ -2,5 +2,4 @@
set -e set -e
echo 'grub-pc/install_devices multiselect /dev/sda, /dev/sdb' | debconf-set-selections

@ -23,7 +23,9 @@ mdadm --examine --scan | perl -pe 's/name\=.*?:/name='"$(cat /etc/hostname)"':/'
# boot # 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 # Docker

@ -39,10 +39,18 @@ mount -t proc none "$chroot/proc"
mount -t sysfs none "$chroot/sys" mount -t sysfs none "$chroot/sys"
mount -o bind /dev "$chroot/dev" mount -o bind /dev "$chroot/dev"
# copy fstab, crypttab, ...
cd config cd config
cp -a * "$chroot" cp -a * "$chroot"
cd .. cd ..
# copy parted.sh, grub.sh, ...
cd "hardware/${1}"
cp -a * "$chroot"
cd ../..
# copy a couple of other files
cp -a docker.key \ cp -a docker.key \
post-debootstrap-installer.sh \ post-debootstrap-installer.sh \
"$chroot" "$chroot"

Loading…
Cancel
Save