Update nixos/lib/make-disk-image.nix
Co-authored-by: Alyssa Ross <hi@alyssa.is>
commit60c8cf4e02f240616e906d6333ebef23b6dfb382
authorclefru <clemens@endorphin.org>
dateFri 22 Jan 2021, 19:58 (6 years ago)
parentf664823
nixos/lib/make-disk-image.nix+1−1
@@ -186,7 +186,7 @@ let format' = format; in let
186186
187187 echo "copying staging root to image..."
188188 cptofs -p ${optionalString (partitionTableType != "none") "-P ${rootPartition}"} -t ${fsType} -i $diskImage $root/* / ||
189− (echo "ERROR: cptofs failed. diskSize might be too small for closure."; exit 1)
189+ (echo >&2 "ERROR: cptofs failed. diskSize might be too small for closure."; exit 1)
190190 '';
191191in pkgs.vmTools.runInLinuxVM (
192192 pkgs.runCommand name