From 9d3167c1474351ccbc8a6f02c894165724efa699 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Wed, 14 Jun 2023 15:19:48 -0400 Subject: fixup! experimental grub simplification --- src/partvi | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/partvi b/src/partvi index 0db57cb..a303b4f 100755 --- a/src/partvi +++ b/src/partvi @@ -295,13 +295,7 @@ copy_data_to_mounted_target_filesystems() boot) BOOT_DIR=$mnt $sudo rsync -a --info=STATS /boot/ "$mnt"/ - while mountpoint -q /boot - do - $sudo umount /boot - done - $sudo mount --bind "$mnt" /boot - $sudo update-grub - $sudo umount /boot + $sudo systemd-run -p BindPaths="$(realpath -e "$mnt"):/boot" --wait update-grub ;; samizdat-keys) $sudo rsync -a --info=STATS "$GPG_INPUT_DIR"/ "$mnt"/gnupghome/ -- cgit v1.2.3