|
|
@ -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"
|
|
|
|