##// END OF EJS Templates
RPI3B+...
RPI3B+ Added RPI_MODEL=3B for Raspberry Pi 3 B+ Model If RPI_MODEL=3B is set rpi23-gen-image will use brcmfmac43455-sdio (bin, txt and clm_blob) instead of brcmfmac43430-sdio WLAN-firmware blob With Model=3 - rpi23-gen-image.sh will not copy brcmfmac43455-sdio.txt and brcmfmac43455-sdio.clm_blob file from firmware_dir. Package firmware-brcm80211 also does not include these files.

Fichier de la dernière révision:

r226:723c186f8874
r250:824dff766aec
Show More
10-bootstrap.sh
47 lines | 1.4 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"
drtyhlpr
Added Debian stretch release support
r92 EXCLUDES=""
drtyhlpr
Added ENABLE_NONFREE support and more
r91
# Use non-free Debian packages if needed
if [ "$ENABLE_NONFREE" = 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
drtyhlpr
Added Debian stretch release support
r92 # Exclude packages if required by Debian release
drtyhlpr
Debian Buster (testing) release support
r217 if [ "$RELEASE" = "stretch" ] || [ "$RELEASE" = "buster" ] ; then
drtyhlpr
Added Debian stretch release support
r92 EXCLUDES="--exclude=init,systemd-sysv"
fi
drtyhlpr
Added ENABLE_NONFREE support and more
r91 # Base debootstrap (unpack only)
drtyhlpr
Added Debian stretch release support
r92 http_proxy=${APT_PROXY} debootstrap ${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
Justin Friel
change qemu permissions in the chroot environment so that the _apt user can execute commands.
r151 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