Reorder code for kernel and bootloader installation
This commit is contained in:
parent
cde02bffa7
commit
12fd86da03
16
build.sh
16
build.sh
|
@ -185,11 +185,16 @@ apt-get update
|
|||
apt-get dist-upgrade -y
|
||||
EOF
|
||||
|
||||
##
|
||||
# Install kernel and bootloader.
|
||||
#
|
||||
on_chroot << EOF
|
||||
apt-get install -y raspberrypi-kernel raspberrypi-bootloader
|
||||
EOF
|
||||
|
||||
##
|
||||
# Prepare Raspberry Pi boot partition.
|
||||
#
|
||||
mkdir -p "$ROOTFS_DIR/boot/"
|
||||
|
||||
install -m 644 files/cmdline.txt "$ROOTFS_DIR/boot/"
|
||||
install -m 644 files/config.txt "$ROOTFS_DIR/boot/"
|
||||
|
||||
|
@ -208,13 +213,10 @@ EOF
|
|||
apply_patches '01-no-root-login.diff'
|
||||
|
||||
##
|
||||
# Install typical Raspberry Pi packages which role is unknown.
|
||||
# Maybe some can be safely removed.
|
||||
# ?????
|
||||
#
|
||||
on_chroot << EOF
|
||||
apt-get install -y \
|
||||
raspberrypi-bootloader \
|
||||
raspberrypi-sys-mods
|
||||
apt-get install -y raspberrypi-sys-mods
|
||||
EOF
|
||||
|
||||
##
|
||||
|
|
Reference in New Issue