summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorRenaud <c0bw3b@users.noreply.github.com>2018-12-01 16:14:55 +0100
committerGitHub <noreply@github.com>2018-12-01 16:14:55 +0100
commit947be9e99238b959361e0bd49648a8d386408e9d (patch)
tree1fe109101ddc89ffe4653fe29e4392490ce339fe /nixos/modules
parent8560887e887e1dc2218554e99f755eefdd4bd42b (diff)
parent38644380493cb87c209115c54dc908a89f43e91b (diff)
downloadnixpkgs-947be9e99238b959361e0bd49648a8d386408e9d.tar
nixpkgs-947be9e99238b959361e0bd49648a8d386408e9d.tar.gz
nixpkgs-947be9e99238b959361e0bd49648a8d386408e9d.tar.bz2
nixpkgs-947be9e99238b959361e0bd49648a8d386408e9d.tar.lz
nixpkgs-947be9e99238b959361e0bd49648a8d386408e9d.tar.xz
nixpkgs-947be9e99238b959361e0bd49648a8d386408e9d.tar.zst
nixpkgs-947be9e99238b959361e0bd49648a8d386408e9d.zip
Merge pull request #51199 from samueldr/fix/iso-image-fat32
iso-image: Verifies the FAT partition at build.
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/installer/cd-dvd/iso-image.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/modules/installer/cd-dvd/iso-image.nix b/nixos/modules/installer/cd-dvd/iso-image.nix
index 96fdb997b2c..aa8003fef2c 100644
--- a/nixos/modules/installer/cd-dvd/iso-image.nix
+++ b/nixos/modules/installer/cd-dvd/iso-image.nix
@@ -339,7 +339,9 @@ let
       echo "Image size: $image_size"
       truncate --size=$image_size "$out"
       ${pkgs.libfaketime}/bin/faketime "2000-01-01 00:00:00" ${pkgs.dosfstools}/sbin/mkfs.vfat -i 12345678 -n EFIBOOT "$out"
-      mcopy -bpsvm -i "$out" ./* ::
+      mcopy -psvm -i "$out" ./* ::
+      # Verify the FAT partition.
+      ${pkgs.dosfstools}/sbin/fsck.vfat -vn "$out"
     ''; # */
 
   targetArch = if pkgs.stdenv.isi686 then