hypervisor package postinst: Actually install
authorIan Jackson <ian.jackson@citrix.com>
Wed, 10 Oct 2018 14:42:39 +0000 (15:42 +0100)
committerHans van Kranenburg <hans@knorrie.org>
Wed, 2 Jan 2019 19:59:36 +0000 (20:59 +0100)
This source template file needs to have .vsn-in at the end of its
filename.

This fixes the bug that one needs to run update-grub by hand.

Signed-off-by: Ian Jackson <ian.jackson@citrix.com>
debian/xen-hypervisor-V-F.postinst [deleted file]
debian/xen-hypervisor-V-F.postinst.vsn-in [new file with mode: 0644]

diff --git a/debian/xen-hypervisor-V-F.postinst b/debian/xen-hypervisor-V-F.postinst
deleted file mode 100644 (file)
index 1540842..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/bash
-
-set -e
-
-case "$1" in
-    configure)
-        if command -v update-grub > /dev/null && [ -d /boot/grub ]; then
-            update-grub || :
-        fi
-    ;;
-
-    abort-upgrade|abort-remove|abort-deconfigure)
-    ;;
-
-    *)
-       echo "postinst called with unknown argument \`$1'" >&2
-       exit 1
-    ;;
-esac
-
-#DEBHELPER#
-
-exit 0
diff --git a/debian/xen-hypervisor-V-F.postinst.vsn-in b/debian/xen-hypervisor-V-F.postinst.vsn-in
new file mode 100644 (file)
index 0000000..1540842
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+set -e
+
+case "$1" in
+    configure)
+        if command -v update-grub > /dev/null && [ -d /boot/grub ]; then
+            update-grub || :
+        fi
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+       echo "postinst called with unknown argument \`$1'" >&2
+       exit 1
+    ;;
+esac
+
+#DEBHELPER#
+
+exit 0