##// END OF EJS Templates
Added ENABLE_NONFREE support and more
Added ENABLE_NONFREE support and more

Fichier de la dernière révision:

r91:491ef8b44865
r91:491ef8b44865
Show More
10-bootstrap.sh
37 lines | 1.1 KiB | application/x-sh | BashLexer
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56 #
# Debootstrap basic system
#
Jan Wagner
spliting more files, fix-uboot, fix-fbturbo, fix-locale
r67 # Load utility functions
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56 . ./functions.sh
drtyhlpr
Added ENABLE_NONFREE support and more
r91 VARIANT=""
COMPONENTS="main"
# Use non-free Debian packages if needed
if [ "$ENABLE_NONFREE" = true ] ; then
COMPONENTS="main,non-free"
fi
# Use minbase bootstrap variant which only includes essential packages
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56 if [ "$ENABLE_MINBASE" = true ] ; then
drtyhlpr
Added ENABLE_NONFREE support and more
r91 VARIANT="--variant=minbase"
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56 fi
drtyhlpr
Added ENABLE_NONFREE support and more
r91 # Base debootstrap (unpack only)
http_proxy=${APT_PROXY} debootstrap --arch="${RELEASE_ARCH}" --foreign ${VARIANT} --components="${COMPONENTS}" --include="${APT_INCLUDES}" "${RELEASE}" "${R}" "http://${APT_SERVER}/debian"
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56 # Copy qemu emulator binary to chroot
Jan Wagner
Added: ENABLE_CRYPTFS - encrypted rootfs, use-latest-bootloader, cp-cleanup
r77 install_exec "${QEMU_BINARY}" "${R}${QEMU_BINARY}"
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56
# Copy debian-archive-keyring.pgp
Jan Wagner
fix: ENABLE_CRYPTFS -> UBOOT, SPLITFS, EXPANDROOT - cleanup
r82 mkdir -p "${R}/usr/share/keyrings"
install_readonly /usr/share/keyrings/debian-archive-keyring.gpg "${R}/usr/share/keyrings/debian-archive-keyring.gpg"
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56
# Complete the bootstrapping process
chroot_exec /debootstrap/debootstrap --second-stage
# Mount required filesystems
Jan Wagner
fix: ENABLE_CRYPTFS -> UBOOT, SPLITFS, EXPANDROOT - cleanup
r82 mount -t proc none "${R}/proc"
mount -t sysfs none "${R}/sys"
mount --bind /dev/pts "${R}/dev/pts"