]> git.proxmox.com Git - pve-kernel-meta.git/commitdiff
pve-efiboot-tool: also refresh autoremove config
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 12 Jul 2019 13:16:49 +0000 (15:16 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 15 Jul 2019 12:28:21 +0000 (14:28 +0200)
especially after modifying the manually selected kernels list, we don't
want this to be skipped.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
bin/pve-efiboot-tool

index 704b28a8758fe0a5eba825234121377aad72627d..3abeb8edc3d8fe80078ad4fa2291ba33368c407b 100755 (executable)
@@ -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() {