···74 return 1
75 fi
7677- echo "Resizing to minimum allowed size"
78- resize2fs -M $img
79-80- # And a final fsck, because of the previous truncating.
81- fsck.ext4 -n -f $img
8283 if [ ${builtins.toString compressImage} ]; then
84 echo "Compressing image"
···74 return 1
75 fi
7677+ # We may want to shrink the file system and resize the image to
78+ # get rid of the unnecessary slack here--but see
79+ # https://github.com/NixOS/nixpkgs/issues/125121 for caveats.
008081 if [ ${builtins.toString compressImage} ]; then
82 echo "Compressing image"