5 .
/usr
/share
/pve-kernel-helper
/scripts
/functions
7 if proxmox-boot-tool status
--quiet; then
8 # detect when being called by dpkg (e.g. grub-pc.postinst
9 if [ -n "$DPKG_RUNNING_VERSION" ] && echo "$DPKG_MAINTSCRIPT_PACKAGE" |
grep -sq "^grub-"; then
10 if [ -d /sys
/firmware
/efi
]; then
11 echo "Promxox's boot-tool is used and booted via EFI, skipping re-sync of GRUB"
14 MARKER_FILE
="/tmp/proxmox-boot-tool.dpkg.marker"
15 if [ ! -e "$MARKER_FILE" ]; then
16 warn
"This system is booted via proxmox-boot-tool, running proxmox-boot-tool init for all configured bootdisks"
17 proxmox-boot-tool reinit
18 proxmox-boot-tool refresh
22 echo "Proxmox's boot-tool marker file found, ignoring grub install call."
26 warn
"grub-install is disabled because this system is booted via proxmox-boot-tool, if you really need to run it, run /usr/sbin/grub-install.real"
29 grub-install.real
"$@"