From 459d655a19fd1e59137ec6ca2a158f91a5a2a3cd Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Mon, 18 Jan 2021 20:22:12 -0500 Subject: working --- src/partvi | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/partvi b/src/partvi index 59b1419..654c235 100755 --- a/src/partvi +++ b/src/partvi @@ -283,10 +283,6 @@ whole=$(losetup -j whole.img -O NAME --noheadings) $sudo kpartx -u "$whole" -target=x86_64-efi -target=i386-pc -set -- grub-install --force --target=$target --removable - for f in part*.conf do [ "$f" != part0.conf ] || continue @@ -307,9 +303,9 @@ do if [ "$type" = 'bios-grub' ] then $sudo mkdir "$mnt"/grub - set -- "$@" --boot-directory="$mnt" + BOOT_DIR=$mnt else - set -- "$@" --efi-directory="$mnt" + EFI_DIR=$mnt fi ;; *) mkdir -p "$mnt" @@ -319,7 +315,8 @@ do esac done -loudly $sudo "$@" "$whole" +loudly $sudo grub-install --force --target=i386-pc --recheck --boot-directory="$BOOT_DIR" "$whole" +loudly $sudo grub-install --force --target=x86_64-efi --removable --efi-directory="$EFI_DIR" "$whole" for f in part*.conf do -- cgit v1.2.3