rpi-update: Default to /boot/firmware if mountpoint exists

Future packaging of the linux kernel results in the mountpoint
of the boot partition moving to /boot/firmware. Lets handle that.
This commit is contained in:
Dom Cobley
2023-08-30 20:15:11 +01:00
committed by Phil Elwell
parent 4a73c45eb6
commit cbaf10c16e

View File

@@ -48,7 +48,11 @@ if [[ "${FW_SUBDIR}" != "" ]]; then
FW_SUBDIR=${FW_SUBDIR: : -1}
fi
fi
BOOT_PATH=${BOOT_PATH:-"/boot"}
if mountpoint -q /boot/firmware ; then
BOOT_PATH=${BOOT_PATH:-"/boot/firmware"}
else
BOOT_PATH=${BOOT_PATH:-"/boot"}
fi
WORK_PATH=${WORK_PATH:-"${ROOT_PATH}/root"}
SKIP_KERNEL=${SKIP_KERNEL:-0}
SKIP_FIRMWARE=${SKIP_FIRMWARE:-0}