git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #67493 from clefru/make-disk-image
commite5ce05cc1eee0b8d890726e9826791ef95c51793 authorJörg Thalheim <Mic92@users.noreply.github.com> dateFri 29 Jan 2021, 07:18 (6 years ago) parent27c60f460c8cf4
1 file changed+2−1
nixos/lib/make-disk-image.nix+2−1
nixos/lib/make-disk-image.nix+2−1
@@ -257,7 +257,8 @@ let format' = format; in let
257257 ''}
258258
259259 echo "copying staging root to image..."
260− cptofs -p ${optionalString (partitionTableType != "none") "-P ${rootPartition}"} -t ${fsType} -i $diskImage $root/* /
260+ cptofs -p ${optionalString (partitionTableType != "none") "-P ${rootPartition}"} -t ${fsType} -i $diskImage $root/* / ||
261+ (echo >&2 "ERROR: cptofs failed. diskSize might be too small for closure."; exit 1)
261262 '';
262263in pkgs.vmTools.runInLinuxVM (
263264 pkgs.runCommand name