summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoru <u@billy>2023-11-17 13:22:27 -0500
committeru <u@billy>2023-11-17 14:38:55 -0500
commitddd12c8a4310c904034310a95cf9eb464fa87084 (patch)
tree8d6e4b457d73a36f8ac801a48a7326ec4a56fa06
parent134cf631ae6257c91cfa143912a89abfe03f5cd7 (diff)
sanity check
-rwxr-xr-xsrc/partvi7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/partvi b/src/partvi
index a993703..e81799d 100755
--- a/src/partvi
+++ b/src/partvi
@@ -308,6 +308,11 @@ copy_data_to_mounted_target_filesystems()
308 esac 308 esac
309} 309}
310 310
311sanity_check()
312{
313 grep -q samizdat "$BOOT_DIR"/grub/grub.cfg
314}
315
311shopt -s nullglob 316shopt -s nullglob
312PATH=/sbin:$PATH 317PATH=/sbin:$PATH
313 318
@@ -373,7 +378,7 @@ trap cleanup EXIT
373$sudo kpartx -su "$whole" 378$sudo kpartx -su "$whole"
374 379
375iterate_partitions copy_data_to_mounted_target_filesystems 380iterate_partitions copy_data_to_mounted_target_filesystems
376 381sanity_check
377time loudly $sudo eatmydata -- grub-install --boot-directory="$BOOT_DIR" "$whole" --target=i386-pc 382time loudly $sudo eatmydata -- grub-install --boot-directory="$BOOT_DIR" "$whole" --target=i386-pc
378time loudly $sudo eatmydata -- grub-install --boot-directory="$BOOT_DIR" "$whole" --target=x86_64-efi --removable --efi-directory="$EFI_DIR" || true 383time loudly $sudo eatmydata -- grub-install --boot-directory="$BOOT_DIR" "$whole" --target=x86_64-efi --removable --efi-directory="$EFI_DIR" || true
379 384