summaryrefslogtreecommitdiff
path: root/src/partvi
diff options
context:
space:
mode:
Diffstat (limited to 'src/partvi')
-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