]> git.proxmox.com Git - pve-kernel-meta.git/commitdiff
d/postinst: create fallback symlinks for rescue-boot here
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 23 Nov 2023 09:36:45 +0000 (10:36 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 23 Nov 2023 09:36:45 +0000 (10:36 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
debian/postinst [new file with mode: 0644]

diff --git a/debian/postinst b/debian/postinst
new file mode 100644 (file)
index 0000000..c7d1270
--- /dev/null
@@ -0,0 +1,17 @@
+#! /bin/sh
+
+# Abort if any command returns an error value
+set -e
+
+case "$1" in
+  configure)
+    # setup kernel links for installation CD (rescue boot)
+    mkdir -p /boot/pve || true
+    ln -sf /boot/pve/vmlinuz-6.5 /boot/pve/vmlinuz || true
+    ln -sf /boot/pve/initrd.img-6.5 /boot/pve/initrd.img || true
+    ;;
+esac
+
+#DEBHELPER#
+
+exit 0