]> git.proxmox.com Git - pve-kernel-meta.git/commitdiff
proxmox-boot: redirect stdout in update-grub snippet
authorStoiko Ivanov <s.ivanov@proxmox.com>
Thu, 24 Jun 2021 11:20:25 +0000 (13:20 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 24 Jun 2021 12:21:01 +0000 (14:21 +0200)
update-grub (via grub-mkconfig) generates the grub configuration by
concatenating the output of each snippet (from /etc/grub.d).

We need to redirect the output of `proxmox-boot-tool refresh`
to not end up with a syntactically wrong config in /boot/grub/grub.cfg
(which is not used in any case)

quickly tested with a test-installation of mine

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
proxmox-boot/000_proxmox_boot_header

index 597f65a31a9608127e3a86e43e03daaf8294a538..106273e145ab1c6eaef4b49b7c66ade69229b506 100755 (executable)
@@ -18,7 +18,7 @@ if proxmox-boot-tool status --quiet; then
                warn "W: Running: 'proxmox-boot-tool refresh'"
                warn ""
 
-               proxmox-boot-tool refresh
+               proxmox-boot-tool refresh > /dev/null
        fi
 fi