public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/sdubby] epel10: Add default-kernel option to match grubby
@ 2026-07-07 7:20 Jeremy Linton
0 siblings, 0 replies; only message in thread
From: Jeremy Linton @ 2026-07-07 7:20 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/sdubby
Branch : epel10
Commit : b238ed07bcbf3e816ec80444c8330f2066b29efc
Author : Jeremy Linton <jlinton@redhat.com>
Date : 2024-03-26T18:41:59-05:00
Stats : +7/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/sdubby/c/b238ed07bcbf3e816ec80444c8330f2066b29efc?branch=epel10
Log:
Add default-kernel option to match grubby
Signed-off-by: Jeremy Linton <jlinton@redhat.com>
---
diff --git a/updateloaderentries.sh b/updateloaderentries.sh
index bc59c83..df08d57 100755
--- a/updateloaderentries.sh
+++ b/updateloaderentries.sh
@@ -58,7 +58,7 @@ if [[ "$progname" == "updateloaderentries" ]]; then
fi
-OPTS="$(getopt -o hc:i:b:? --long help,args:,info:,update-kernel:,remove-args: -- "$@")"
+OPTS="$(getopt -o hc:i:b:? --long help,args:,info:,update-kernel:,remove-args:,default-kernel -- "$@")"
eval set -- "$OPTS"
@@ -86,6 +86,9 @@ while [ ${#} -gt 0 ]; do
info_kernel="$2"
shift 1
;;
+ --default-kernel)
+ utilmode="defaultkernel"
+ ;;
esac
shift
done
@@ -116,6 +119,9 @@ case "$utilmode" in
bootctl list | grep -B7 -A2 ".*linux:.*$info_kernel" | awk "$CAPTUREROOT" | eval "${BOOTCTL_REMOVE_UNUSED}" | eval "${BOOTCTL_TO_GRUBBY_INFO}" | eval "${BOOTCTL_QUOTING}"
fi
;;
+ defaultkernel)
+ bootctl list |grep -A6 ".*title:.*(default)" | grep "linux:" | cut -c16-
+ ;;
merge)
for i in /boot/efi/loader/entries/*; do
if [[ -f "$i" ]]; then
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-07 7:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-07 7:20 [rpms/sdubby] epel10: Add default-kernel option to match grubby Jeremy Linton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox