mirror of
https://git.proxmox.com/git/proxmox-kernel-helper
synced 2025-10-04 20:53:46 +00:00
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:
parent
f6ca90855c
commit
96fa4a98ef
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
. /usr/share/pve-kernel-helper/scripts/functions
|
. /usr/share/proxmox-kernel-helper/scripts/functions
|
||||||
|
|
||||||
if proxmox-boot-tool status --quiet; then
|
if proxmox-boot-tool status --quiet; then
|
||||||
# detect when being called by dpkg (e.g. grub-pc.postinst
|
# detect when being called by dpkg (e.g. grub-pc.postinst
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
. /usr/share/pve-kernel-helper/scripts/functions
|
. /usr/share/proxmox-kernel-helper/scripts/functions
|
||||||
|
|
||||||
_add_entry_to_list_file() {
|
_add_entry_to_list_file() {
|
||||||
file="$1"
|
file="$1"
|
||||||
|
2
debian/install
vendored
2
debian/install
vendored
@ -5,5 +5,5 @@ etc/initramfs/post-update.d/proxmox-boot-sync
|
|||||||
lib/systemd/system/proxmox-boot-cleanup.service
|
lib/systemd/system/proxmox-boot-cleanup.service
|
||||||
usr/sbin/proxmox-boot-tool
|
usr/sbin/proxmox-boot-tool
|
||||||
usr/sbin/grub-install
|
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
|
debian/proxmox-simpledrm /usr/share/initramfs-tools/modules.d
|
||||||
|
2
debian/links
vendored
2
debian/links
vendored
@ -1 +1,3 @@
|
|||||||
/usr/sbin/proxmox-boot-tool /usr/sbin/pve-efiboot-tool
|
/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
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
. /usr/share/pve-kernel-helper/scripts/functions
|
. /usr/share/proxmox-kernel-helper/scripts/functions
|
||||||
|
|
||||||
if proxmox-boot-tool status --quiet; then
|
if proxmox-boot-tool status --quiet; then
|
||||||
cat <<- EOF
|
cat <<- EOF
|
||||||
|
@ -7,7 +7,7 @@ SYSTEMD_SERVICES = proxmox-boot-cleanup.service
|
|||||||
POSTINSTHOOKDIR = ${DESTDIR}/etc/kernel/postinst.d
|
POSTINSTHOOKDIR = ${DESTDIR}/etc/kernel/postinst.d
|
||||||
POSTRMHOOKDIR = ${DESTDIR}/etc/kernel/postrm.d
|
POSTRMHOOKDIR = ${DESTDIR}/etc/kernel/postrm.d
|
||||||
POSTINITRAMFSHOOKDIR = ${DESTDIR}/etc/initramfs/post-update.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
|
GRUB_CFG_DIR = ${DESTDIR}/etc/grub.d
|
||||||
SERVICE_DIR = ${DESTDIR}/lib/systemd/system
|
SERVICE_DIR = ${DESTDIR}/lib/systemd/system
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
set -e
|
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)"
|
eval "$(apt-config shell APT_CONF_D Dir::Etc::parts/d)"
|
||||||
test -n "${APT_CONF_D}" || APT_CONF_D="/etc/apt/apt.conf.d"
|
test -n "${APT_CONF_D}" || APT_CONF_D="/etc/apt/apt.conf.d"
|
||||||
|
@ -28,7 +28,7 @@ cleanup() {
|
|||||||
|
|
||||||
trap cleanup EXIT INT TERM QUIT
|
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"
|
LOADER_TITLE="Proxmox Virtual Environment"
|
||||||
if [ -d /etc/pve/ ]; then
|
if [ -d /etc/pve/ ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user