mirror of
https://git.proxmox.com/git/pve-kernel-meta
synced 2025-05-02 17:34:13 +00:00
grub wrapper: move to simple space indentation and minimal whitespace cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
25c7338c8a
commit
ea065c7e3f
@ -1,4 +1,5 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
. /usr/share/pve-kernel-helper/scripts/functions
|
. /usr/share/pve-kernel-helper/scripts/functions
|
||||||
@ -18,9 +19,8 @@ init_boot_disks() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
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
|
||||||
if [ -n "$DPKG_RUNNING_VERSION" ] && \
|
if [ -n "$DPKG_RUNNING_VERSION" ] && echo "$DPKG_MAINTSCRIPT_PACKAGE" | grep -sq "^grub-"; then
|
||||||
echo "$DPKG_MAINTSCRIPT_PACKAGE" | grep -sq "^grub-"; then
|
|
||||||
MARKER_FILE="/tmp/proxmox-boot-tool.dpkg.marker"
|
MARKER_FILE="/tmp/proxmox-boot-tool.dpkg.marker"
|
||||||
if [ ! -e "$MARKER_FILE" ]; then
|
if [ ! -e "$MARKER_FILE" ]; then
|
||||||
warn "This system is booted via proxmox-boot-tool, running proxmox-boot-tool init for all configured bootdisks"
|
warn "This system is booted via proxmox-boot-tool, running proxmox-boot-tool init for all configured bootdisks"
|
||||||
@ -36,4 +36,3 @@ if proxmox-boot-tool status --quiet; then
|
|||||||
else
|
else
|
||||||
grub-install.real "$@"
|
grub-install.real "$@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user