Browse Source

raspberrypi: Do not overwrite existing kernel.

Changelog: Title
Signed-off-by: Drew Moseley <drew.moseley@northern.tech>
revert-252-rm-only-tag-2.2.x
Drew Moseley 5 years ago
parent
commit
901a70c969
  1. 8
      configs/raspberrypi_config

8
configs/raspberrypi_config

@ -71,8 +71,12 @@ function platform_modify() {
RASPBERRYPI_BOOTLOADER_IMAGE="${RASPBERRYPI_KERNEL_IMAGE}"
fi
# Extract Linux kernel and install to /boot directory on rootfs
run_and_log_cmd "sudo cp work/boot/${RASPBERRYPI_KERNEL_IMAGE} work/rootfs/boot/${MENDER_KERNEL_IMAGETYPE}"
# Extract Linux kernel and install to /boot directory on rootfs if it doesn't already exist.
# If it already exists, the input image is likely already converted so we just want to use
# the existing kernel image.
if [ ! -f "work/rootfs/boot/${MENDER_KERNEL_IMAGETYPE}" ]; then
run_and_log_cmd "sudo cp work/boot/${RASPBERRYPI_KERNEL_IMAGE} work/rootfs/boot/${MENDER_KERNEL_IMAGETYPE}"
fi
# Replace kernel with U-boot and add boot script
run_and_log_cmd "sudo mkdir -p work/rootfs/uboot"

Loading…
Cancel
Save