projects
/
pve-kernel-meta.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7979ef4
)
efiboot: actually sync last kernel of old series
author
Fabian Grünbichler
<f.gruenbichler@proxmox.com>
Fri, 12 Jul 2019 13:16:42 +0000
(15:16 +0200)
committer
Thomas Lamprecht
<t.lamprecht@proxmox.com>
Mon, 15 Jul 2019 12:28:21 +0000
(14:28 +0200)
and not just keep it from being autoremoved
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
efiboot/functions
patch
|
blob
|
blame
|
history
diff --git
a/efiboot/functions
b/efiboot/functions
index 79062d8ddd6431207bd7815e85e634a656463b60..293d4c0f3c1183a25b7fc93ff062e72d05a77d69 100755
(executable)
--- a/
efiboot/functions
+++ b/
efiboot/functions
@@
-41,11
+41,15
@@
kernel_keep_versions() {
series_metapackages="$(echo "$sorted_list" | grep -Ev '^[^ ]+-pve')"
+ oldseries="$(echo "$series_metapackages" | head -n2 | tail -n1)"
+ oldseries_latest_kernel="$(echo "$sorted_list" | grep -E "^${oldseries}\.[^ ]+-pve" | head -n1 )"
+
kernels="$(cat <<-EOF
$running_version
$install_version
$latest_2_versions
$series_metapackages
+ $oldseries_latest_kernel
EOF
)"