proxmox-kernel-helper/proxmox-boot/000_proxmox_boot_header
Fabian Grünbichler 96fa4a98ef 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>
2023-03-16 12:56:32 +01:00

25 lines
726 B
Bash
Executable File

#! /bin/sh
set -e
. /usr/share/proxmox-kernel-helper/scripts/functions
if proxmox-boot-tool status --quiet; then
cat <<- EOF
#
# This system is booted via proxmox-boot-tool! The grub-config used when
# booting from the disks configured with proxmox-boot-tool resides on the vfat
# partitions with UUIDs listed in ${ESP_LIST}.
# /boot/grub/grub.cfg is NOT read when booting from those disk!
EOF
if [ -z "$DPKG_RUNNING_VERSION" ] && [ -z "$PVE_EFIBOOT_UNSHARED" ]; then
warn "W: This system is booted via proxmox-boot-tool:"
warn "W: Executing 'update-grub' directly does not update the correct configs!"
warn "W: Running: 'proxmox-boot-tool refresh'"
warn ""
proxmox-boot-tool refresh > /dev/null
fi
fi