summaryrefslogtreecommitdiff
path: root/export-image/prerun.sh
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.com>2023-09-07 14:08:13 +0100
committerSerge Schneider <serge@raspberrypi.com>2023-09-25 15:04:19 +0100
commitc856800c72c8a58e17d7ee20295605d479b00dff (patch)
treef9012992b131bead56958c4958a46b2cb13b4049 /export-image/prerun.sh
parent88ac5235d62135806157183c466fdea202ce38f8 (diff)
Switch to new kernel and firmware packages
Diffstat (limited to 'export-image/prerun.sh')
-rwxr-xr-xexport-image/prerun.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/export-image/prerun.sh b/export-image/prerun.sh
index 267bbe0..a5f94e9 100755
--- a/export-image/prerun.sh
+++ b/export-image/prerun.sh
@@ -10,8 +10,8 @@ if [ "${NO_PRERUN_QCOW2}" = "0" ]; then
rm -rf "${ROOTFS_DIR}"
mkdir -p "${ROOTFS_DIR}"
- BOOT_SIZE="$((256 * 1024 * 1024))"
- ROOT_SIZE=$(du --apparent-size -s "${EXPORT_ROOTFS_DIR}" --exclude var/cache/apt/archives --exclude boot --block-size=1 | cut -f 1)
+ BOOT_SIZE="$((512 * 1024 * 1024))"
+ ROOT_SIZE=$(du --apparent-size -s "${EXPORT_ROOTFS_DIR}" --exclude var/cache/apt/archives --exclude boot/firmware --block-size=1 | cut -f 1)
# All partition sizes and starts will be aligned to this size
ALIGN="$((4 * 1024 * 1024))"
@@ -59,9 +59,9 @@ if [ "${NO_PRERUN_QCOW2}" = "0" ]; then
mkfs.ext4 -L rootfs -O "$ROOT_FEATURES" "$ROOT_DEV" > /dev/null
mount -v "$ROOT_DEV" "${ROOTFS_DIR}" -t ext4
- mkdir -p "${ROOTFS_DIR}/boot"
- mount -v "$BOOT_DEV" "${ROOTFS_DIR}/boot" -t vfat
+ mkdir -p "${ROOTFS_DIR}/boot/firmware"
+ mount -v "$BOOT_DEV" "${ROOTFS_DIR}/boot/firmware" -t vfat
- rsync -aHAXx --exclude /var/cache/apt/archives --exclude /boot "${EXPORT_ROOTFS_DIR}/" "${ROOTFS_DIR}/"
- rsync -rtx "${EXPORT_ROOTFS_DIR}/boot/" "${ROOTFS_DIR}/boot/"
+ rsync -aHAXx --exclude /var/cache/apt/archives --exclude /boot/firmware "${EXPORT_ROOTFS_DIR}/" "${ROOTFS_DIR}/"
+ rsync -rtx "${EXPORT_ROOTFS_DIR}/boot/firmware/" "${ROOTFS_DIR}/boot/firmware/"
fi