From e932ac938808002a4694ce9b684d83f67777140e Mon Sep 17 00:00:00 2001 From: ZHANG Yuntian <95260730+RadxaYuntian@users.noreply.github.com> Date: Wed, 6 Dec 2023 20:21:29 +0800 Subject: [PATCH] Allow kernel hook to fail --- src/usr/lib/rsetup/cli/kernel.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/usr/lib/rsetup/cli/kernel.sh b/src/usr/lib/rsetup/cli/kernel.sh index bd17cd06..5c991751 100644 --- a/src/usr/lib/rsetup/cli/kernel.sh +++ b/src/usr/lib/rsetup/cli/kernel.sh @@ -12,7 +12,11 @@ __yz-update-overlays() { case $ACTION in configure) echo "Updating overlays for $ABI ..." - rebuild_overlays "$ABI" "$(get_soc_vendor)" + if ! rebuild_overlays "$ABI" "$(get_soc_vendor)" + then + echo "Failed to update overlays." + echo "Please make sure u-boot-menu is installed on your system." + fi ;; remove) ;;