[pve-devel] [PATCH kernel-meta 08/10] pve-efiboot-tool: also refresh autoremove config

Fabian Grünbichler f.gruenbichler at proxmox.com
Fri Jul 12 15:16:49 CEST 2019


especially after modifying the manually selected kernels list, we don't
want this to be skipped.

Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
 bin/pve-efiboot-tool | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/bin/pve-efiboot-tool b/bin/pve-efiboot-tool
index 704b28a..3abeb8e 100755
--- a/bin/pve-efiboot-tool
+++ b/bin/pve-efiboot-tool
@@ -195,9 +195,11 @@ clean() {
 }
 
 refresh() {
-	hookscript='/etc/kernel/postinst.d/zz-pve-efiboot'
-	echo "Running hook script '$hookscript'.."
-	exec $hookscript
+	hookscripts='pve-auto-removal zz-pve-efiboot'
+	for script in $hookscripts; do
+		echo "Running hook script '$script'.."
+		"/etc/kernel/postinst.d/$script"
+	done
 }
 
 add_kernel() {
-- 
2.20.1





More information about the pve-devel mailing list