##// END OF EJS Templates
Merge branch 'masterDRT' into masterGV
Merge branch 'masterDRT' into masterGV

Fichier de la dernière révision:

r746:3367d9345003 Fusion
r746:3367d9345003 Fusion
Show More
10-bootstrap.sh
49 lines | 1.5 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
Unknown
-Enable_nonfree no longer enables non-free packages while install. now it enables non free packacges in sources.list...
r732 # One use variable which is only needed by wifi firmware blob => reworked to use non free in /etc/apt/sources.list - we could just use ENABLE_WIRELESS here
if [ "$ENABLE_WIRELESS" = true ] ; then
drtyhlpr
fixed: ENABLE_NONFREE
r226 COMPONENTS="main,non-free,contrib"
drtyhlpr
Added ENABLE_NONFREE support and more
r91 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
Gérard Vidal
Merge branch 'master' into drtyhlpr-master
r627
drtyhlpr
Added Debian stretch release support
r92 # Exclude packages if required by Debian release
Align vidal repo on drtyhlpr
r728 #if [ "$RELEASE" = "stretch" ] || [ "$RELEASE" = "buster" ] ; then
# APT_EXCLUDES="--exclude=init,systemd-sysv"
#fi
Changes to enable buster image generation...
r152
Gérard Vidal
Merge branch 'master' into drtyhlpr-master
r627
drtyhlpr
Added ENABLE_NONFREE support and more
r91 # Base debootstrap (unpack only)
Unknown
Refactor...
r375 http_proxy=${APT_PROXY} debootstrap ${APT_EXCLUDES} --arch="${RELEASE_ARCH}" --foreign ${VARIANT} --components="${COMPONENTS}" --include="${APT_INCLUDES}" "${RELEASE}" "${R}" "http://${APT_SERVER}/debian"
drtyhlpr
Added ENABLE_NONFREE support and more
r91
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56 # Copy qemu emulator binary to chroot
Changes to enable buster image generation...
r152 install -m 755 -o root -g root "${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"
drtyhlpr
Added Debian stretch release support
r92
# Mount pseudo terminal slave if supported by Debian release
if [ -d "${R}/dev/pts" ] ; then
mount --bind /dev/pts "${R}/dev/pts"
fi