Update nixos/lib/make-disk-image.nix

Co-authored-by: Alyssa Ross <hi@alyssa.is>
wip/yesman
clefru 3 years ago committed by GitHub
parent f664823a1a
commit 60c8cf4e02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      nixos/lib/make-disk-image.nix

@ -186,7 +186,7 @@ let format' = format; in let
echo "copying staging root to image..."
cptofs -p ${optionalString (partitionTableType != "none") "-P ${rootPartition}"} -t ${fsType} -i $diskImage $root/* / ||
(echo "ERROR: cptofs failed. diskSize might be too small for closure."; exit 1)
(echo >&2 "ERROR: cptofs failed. diskSize might be too small for closure."; exit 1)
'';
in pkgs.vmTools.runInLinuxVM (
pkgs.runCommand name

Loading…
Cancel
Save