Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/usr/lib/rsetup/cli/edk2-menu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ load_edk2_setting() {
}

is_edk2_exist() {
command -v bootctl &>/dev/null && bootctl list &>/dev/null && load_edk2_setting &>/dev/null
local version
version="${1:-}"

command -v bootctl &>/dev/null && bootctl list &>/dev/null && load_edk2_setting "$version" &>/dev/null
}

update_entry_overlays() {
Expand Down
5 changes: 4 additions & 1 deletion src/usr/lib/rsetup/cli/overlay-menu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,14 @@ disable_overlays() {
}

rebuild_overlays() {
local version
version="${1:-}"

if is_u-boot_exist; then
rebuild_u-boot_overlays "$@"
fi

if is_edk2_exist; then
if is_edk2_exist "$version"; then
rebuild_edk2_overlays "$@"
fi
}
Expand Down
Loading