mkdir -p proxmox-ve/data/usr/share/doc/${PVEPKG}/
install -m 0644 proxmox-ve/proxmox-release\@proxmox.com.pubkey proxmox-ve/data/usr/share/doc/${PVEPKG}
sed -e 's/@KVNAME@/${KVNAME}/' -e 's/@KERNEL_VER@/${KERNEL_VER}/' -e 's/@RELEASE@/${RELEASE}/' -e 's/@PKGREL@/${PKGREL}/' <proxmox-ve/control >proxmox-ve/data/DEBIAN/control
- install -m 0755 proxmox-ve/postinst proxmox-ve/data/DEBIAN/postinst
+ sed -e 's/@KVNAME@/${KVNAME}/' <proxmox-ve/postinst >proxmox-ve/data/DEBIAN/postinst
+ chmod 0755 proxmox-ve/data/DEBIAN/postinst
+ install -m 0755 proxmox-ve/postrm proxmox-ve/data/DEBIAN/postrm
echo "git clone git://git.proxmox.com/git/pve-kernel-4.0.git\\ngit checkout ${GITVERSION}" > proxmox-ve/data/usr/share/doc/${PVEPKG}/SOURCE
install -m 0644 proxmox-ve/copyright proxmox-ve/data/usr/share/doc/${PVEPKG}
install -m 0644 proxmox-ve/changelog.Debian proxmox-ve/data/usr/share/doc/${PVEPKG}
+proxmox-ve (4.0-31) unstable; urgency=medium
+
+ * setup kernel links for installation CD (rescue boot)
+
+ -- Proxmox Support Team <support@proxmox.com> Sun, 10 Jan 2016 10:10:37 +0100
+
proxmox-ve (4.0-29) unstable; urgency=medium
* depend on newest 4.2.6-1-pve kernel
echo -n "installing proxmox release key: "
/usr/bin/apt-key add '/usr/share/doc/proxmox-ve/proxmox-release@proxmox.com.pubkey' || /bin/true
+ # setup kernel links for installation CD (rescue boot)
+ mkdir -p /boot/pve
+ ln -sf /boot/vmlinuz-@KVNAME@ /boot/pve/vmlinuz
+ ln -sf /boot/initrd.img-@KVNAME@ /boot/pve/initrd.img
+
# There are three sub-cases:
if test "${2+set}" != set; then
# We're being installed by an ancient dpkg which doesn't remember
--- /dev/null
+#! /bin/sh
+
+# Abort if any command returns an error value
+set -e
+
+case "$1" in
+ purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ # remove kernel symlinks
+ rm -f /boot/pve/vmlinuz
+ rm -f /boot/pve/initrd.img
+ rmdir --ignore-fail-on-non-empty /boot/pve/
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+