mirror of
https://git.proxmox.com/git/pve-kernel-meta
synced 2026-03-24 13:38:09 +00:00
if a (legacy) system is booted with proxmox-boot-tool, running `grub-install` without being aware of the fact can render the system unbootable (e.g. when letting the early stage point to an incompatible zpool instead of the ESP). To prevent this we add a dpkg-diversion [0], which simply checks if `proxmox-boot-tool status` indicates that proxmox-boot is used and errors out in that case, and runs the actual grub-install else. Co-authored-by: Thomas Lamprecht <t.lamprecht@proxmox.com> Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
14 lines
231 B
Makefile
14 lines
231 B
Makefile
SBINDIR=${DESTDIR}/usr/sbin
|
|
|
|
.PHONY: all
|
|
all:
|
|
|
|
install:
|
|
install -d ${SBINDIR}
|
|
install -m 0755 proxmox-boot-tool ${SBINDIR}/
|
|
install -m 0755 grub-install-wrapper ${SBINDIR}/grub-install
|
|
|
|
.PHONY: clean distclean
|
|
distclean:
|
|
clean:
|