1
0
Fork 0

Reorder code for kernel and bootloader installation

This commit is contained in:
Braiden Vasco 2017-07-06 00:29:17 +00:00
parent cde02bffa7
commit 12fd86da03
1 changed files with 9 additions and 7 deletions

View File

@ -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
##