##// END OF EJS Templates
Refactor...
Refactor Use RPI_MODEL and SET_ARCH to define all board relevant settings, crosscompilers, architectures etc... - SET_ARCH=32 is default and used for all boards in 32bit mode - SET_ARCH=64 and RPI_MODEL=3 or 3P activate 64bit mode! - no need to set CROSS_COMPILE, KERNEL_IMAGE, RELEASE_ARCH, KERNEL_DEFCONFIG, KERNEL_ARCH, QEMU_BINARY - build kernel is now a default. i kicked out old kernel v3 and jessie support! they're too old. set buster as default - autodetect if program is running on 3142 => assume it is apt-cacher-ng and set APT_PROXY - next pull includes sakaki kernel for RPI3 and RPi3B+ => see https://github.com/sakaki-/bcmrpi3-kernel-bis

Fichier de la dernière révision:

r94:2ce085c56493
r375:a90f6ad1a83f
Show More
50-firstboot.sh
49 lines | 1.5 KiB | application/x-sh | BashLexer
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56 #
# First boot actions
#
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
Jan Wagner
spliting more files, fix-uboot, fix-fbturbo, fix-locale
r67 # Prepare rc.firstboot script
drtyhlpr
Added Raspberry Pi 3 model support
r94 cat files/firstboot/10-begin.sh > "${ETC_DIR}/rc.firstboot"
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56
# Ensure openssh server host keys are regenerated on first boot
Jan Wagner
Added: ENABLE_CRYPTFS - encrypted rootfs, use-latest-bootloader, cp-cleanup
r77 if [ "$ENABLE_SSHD" = true ] ; then
drtyhlpr
Added Raspberry Pi 3 model support
r94 cat files/firstboot/21-generate-ssh-keys.sh >> "${ETC_DIR}/rc.firstboot"
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56 fi
Jan Wagner
spliting more files, fix-uboot, fix-fbturbo, fix-locale
r67 # Prepare filesystem auto expand
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56 if [ "$EXPANDROOT" = true ] ; then
Jan Wagner
fix: ENABLE_CRYPTFS -> UBOOT, SPLITFS, EXPANDROOT - cleanup
r82 if [ "$ENABLE_CRYPTFS" = false ] ; then
drtyhlpr
Added Raspberry Pi 3 model support
r94 cat files/firstboot/22-expandroot.sh >> "${ETC_DIR}/rc.firstboot"
Jan Wagner
fix: ENABLE_CRYPTFS -> UBOOT, SPLITFS, EXPANDROOT - cleanup
r82 else
# Regenerate initramfs to remove encrypted root partition auto expand
drtyhlpr
Added Raspberry Pi 3 model support
r94 cat files/firstboot/23-regenerate-initramfs.sh >> "${ETC_DIR}/rc.firstboot"
Jan Wagner
fix: ENABLE_CRYPTFS -> UBOOT, SPLITFS, EXPANDROOT - cleanup
r82 fi
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56 fi
Jan Wagner
Added: ENABLE_REDUCE - down to 160MB used space,fix-resolve,fix-machineid
r73 # Ensure that dbus machine-id exists
drtyhlpr
Added Raspberry Pi 3 model support
r94 cat files/firstboot/24-generate-machineid.sh >> "${ETC_DIR}/rc.firstboot"
Jan Wagner
Added: ENABLE_REDUCE - down to 160MB used space,fix-resolve,fix-machineid
r73
# Create /etc/resolv.conf symlink
drtyhlpr
Added Raspberry Pi 3 model support
r94 cat files/firstboot/25-create-resolv-symlink.sh >> "${ETC_DIR}/rc.firstboot"
Jan Wagner
Added: ENABLE_REDUCE - down to 160MB used space,fix-resolve,fix-machineid
r73
drtyhlpr
Added Debian stretch release support
r92 # Configure automatic network interface names
if [ "$ENABLE_IFNAMES" = true ] ; then
drtyhlpr
Added Raspberry Pi 3 model support
r94 cat files/firstboot/26-config-ifnames.sh >> "${ETC_DIR}/rc.firstboot"
drtyhlpr
Added Debian stretch release support
r92 fi
Jan Wagner
spliting more files, fix-uboot, fix-fbturbo, fix-locale
r67 # Finalize rc.firstboot script
drtyhlpr
Added Raspberry Pi 3 model support
r94 cat files/firstboot/99-finish.sh >> "${ETC_DIR}/rc.firstboot"
chmod +x "${ETC_DIR}/rc.firstboot"
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56
drtyhlpr
Added Debian stretch release support
r92 # Install default rc.local if it does not exist
drtyhlpr
Added Raspberry Pi 3 model support
r94 if [ ! -f "${ETC_DIR}/rc.local" ] ; then
install_exec files/etc/rc.local "${ETC_DIR}/rc.local"
drtyhlpr
Added Debian stretch release support
r92 fi
Jan Wagner
spliting more files, fix-uboot, fix-fbturbo, fix-locale
r67 # Add rc.firstboot script to rc.local
drtyhlpr
Added Raspberry Pi 3 model support
r94 sed -i '/exit 0/d' "${ETC_DIR}/rc.local"
echo /etc/rc.firstboot >> "${ETC_DIR}/rc.local"
echo exit 0 >> "${ETC_DIR}/rc.local"