mirror of
https://github.com/raspberrypi/rpi-update.git
synced 2026-01-20 21:13:38 +08:00
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:
@@ -48,7 +48,11 @@ if [[ "${FW_SUBDIR}" != "" ]]; then
|
|||||||
FW_SUBDIR=${FW_SUBDIR: : -1}
|
FW_SUBDIR=${FW_SUBDIR: : -1}
|
||||||
fi
|
fi
|
||||||
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"}
|
WORK_PATH=${WORK_PATH:-"${ROOT_PATH}/root"}
|
||||||
SKIP_KERNEL=${SKIP_KERNEL:-0}
|
SKIP_KERNEL=${SKIP_KERNEL:-0}
|
||||||
SKIP_FIRMWARE=${SKIP_FIRMWARE:-0}
|
SKIP_FIRMWARE=${SKIP_FIRMWARE:-0}
|
||||||
|
|||||||
Reference in New Issue
Block a user