##// END OF EJS Templates
-using --verbose and debug while creating cryptfs to give a hint by default...
-using --verbose and debug while creating cryptfs to give a hint by default -Added KERNEL_DHKEY,KERNEL_BTRFS,KERNEL_NSPAN,KERNEL_POEHAT options - support new cryptsetup version replacing legacy stuff. -Split cryptfs cipher and hash into seperate vars -reworked 14-fstab.sh to replace legacy dropbear cryptsetup stuff - some bullseye apt fix relpacing bullseye with testing - README updates also adding Kernel source hints and some RPI4 text

Fichier de la dernière révision:

r375:a90f6ad1a83f
r696:2f2cf24844e7 pull
Show More
10-bootstrap.sh
41 lines | 1.2 KiB | application/x-sh | BashLexer
#
# Debootstrap basic system
#
# Load utility functions
. ./functions.sh
VARIANT=""
COMPONENTS="main"
# Use non-free Debian packages if needed
if [ "$ENABLE_NONFREE" = true ] ; then
COMPONENTS="main,non-free,contrib"
fi
# Use minbase bootstrap variant which only includes essential packages
if [ "$ENABLE_MINBASE" = true ] ; then
VARIANT="--variant=minbase"
fi
# Base debootstrap (unpack only)
http_proxy=${APT_PROXY} debootstrap ${APT_EXCLUDES} --arch="${RELEASE_ARCH}" --foreign ${VARIANT} --components="${COMPONENTS}" --include="${APT_INCLUDES}" "${RELEASE}" "${R}" "http://${APT_SERVER}/debian"
# Copy qemu emulator binary to chroot
install -m 755 -o root -g root "${QEMU_BINARY}" "${R}${QEMU_BINARY}"
# Copy debian-archive-keyring.pgp
mkdir -p "${R}/usr/share/keyrings"
install_readonly /usr/share/keyrings/debian-archive-keyring.gpg "${R}/usr/share/keyrings/debian-archive-keyring.gpg"
# Complete the bootstrapping process
chroot_exec /debootstrap/debootstrap --second-stage
# Mount required filesystems
mount -t proc none "${R}/proc"
mount -t sysfs none "${R}/sys"
# Mount pseudo terminal slave if supported by Debian release
if [ -d "${R}/dev/pts" ] ; then
mount --bind /dev/pts "${R}/dev/pts"
fi