From 7b49e04d6916cf7e3153def6ebc0c6062cbc1d44 Mon Sep 17 00:00:00 2001 From: Prakash Surya Date: Wed, 1 May 2024 16:06:49 -0700 Subject: [PATCH] DLPX-90976 add "--debug-image=all" to grub-install (#759) PR URL: https://www.github.com/delphix/appliance-build/pull/759 --- upgrade/upgrade-scripts/rootfs-container | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/upgrade/upgrade-scripts/rootfs-container b/upgrade/upgrade-scripts/rootfs-container index bd384010..447fe919 100755 --- a/upgrade/upgrade-scripts/rootfs-container +++ b/upgrade/upgrade-scripts/rootfs-container @@ -153,7 +153,8 @@ function set_bootfs_not_mounted() { die "bootloader device '/dev/$dev' not block device" chroot "/var/lib/machines/$CONTAINER" \ - grub-install --root-directory=/mnt "/dev/$dev" || + grub-install -v --debug-image=all \ + --root-directory=/mnt "/dev/$dev" || die "'grub-install' for '$dev' failed in '$CONTAINER'" done @@ -206,7 +207,8 @@ function set_bootfs_mounted() { [[ -b "/dev/$dev" ]] || die "bootloader device '/dev/$dev' not block device" - grub-install --root-directory=/mnt "/dev/$dev" || + grub-install -v --debug-image=all \ + --root-directory=/mnt "/dev/$dev" || die "'grub-install' for '$dev' failed in '$CONTAINER'" done