rename /usr/share/pve-kernel-helper

and ensure upgrades that also involve a kernel install/uninstall/upgrade still
work by symlinking the old path to the new one.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2023-03-16 11:05:06 +01:00
parent f6ca90855c
commit 96fa4a98ef
8 changed files with 9 additions and 7 deletions

View File

@ -2,7 +2,7 @@
set -e
. /usr/share/pve-kernel-helper/scripts/functions
. /usr/share/proxmox-kernel-helper/scripts/functions
if proxmox-boot-tool status --quiet; then
# detect when being called by dpkg (e.g. grub-pc.postinst

View File

@ -2,7 +2,7 @@
set -e
. /usr/share/pve-kernel-helper/scripts/functions
. /usr/share/proxmox-kernel-helper/scripts/functions
_add_entry_to_list_file() {
file="$1"

2
debian/install vendored
View File

@ -5,5 +5,5 @@ etc/initramfs/post-update.d/proxmox-boot-sync
lib/systemd/system/proxmox-boot-cleanup.service
usr/sbin/proxmox-boot-tool
usr/sbin/grub-install
usr/share/pve-kernel-helper/scripts/functions
usr/share/proxmox-kernel-helper/scripts/functions
debian/proxmox-simpledrm /usr/share/initramfs-tools/modules.d

2
debian/links vendored
View File

@ -1 +1,3 @@
/usr/sbin/proxmox-boot-tool /usr/sbin/pve-efiboot-tool
# for upgrade compat, can be removed with 8.0
/usr/share/proxmox-kernel-helper /usr/share/pve-kernel-helper

View File

@ -1,7 +1,7 @@
#! /bin/sh
set -e
. /usr/share/pve-kernel-helper/scripts/functions
. /usr/share/proxmox-kernel-helper/scripts/functions
if proxmox-boot-tool status --quiet; then
cat <<- EOF

View File

@ -7,7 +7,7 @@ SYSTEMD_SERVICES = proxmox-boot-cleanup.service
POSTINSTHOOKDIR = ${DESTDIR}/etc/kernel/postinst.d
POSTRMHOOKDIR = ${DESTDIR}/etc/kernel/postrm.d
POSTINITRAMFSHOOKDIR = ${DESTDIR}/etc/initramfs/post-update.d
SHARE_SCRIPTDIR = ${DESTDIR}/usr/share/pve-kernel-helper/scripts
SHARE_SCRIPTDIR = ${DESTDIR}/usr/share/proxmox-kernel-helper/scripts
GRUB_CFG_DIR = ${DESTDIR}/etc/grub.d
SERVICE_DIR = ${DESTDIR}/lib/systemd/system

View File

@ -1,7 +1,7 @@
#! /bin/sh
set -e
. /usr/share/pve-kernel-helper/scripts/functions
. /usr/share/proxmox-kernel-helper/scripts/functions
eval "$(apt-config shell APT_CONF_D Dir::Etc::parts/d)"
test -n "${APT_CONF_D}" || APT_CONF_D="/etc/apt/apt.conf.d"

View File

@ -28,7 +28,7 @@ cleanup() {
trap cleanup EXIT INT TERM QUIT
. /usr/share/pve-kernel-helper/scripts/functions
. /usr/share/proxmox-kernel-helper/scripts/functions
LOADER_TITLE="Proxmox Virtual Environment"
if [ -d /etc/pve/ ]; then