···7474 return 1
7575 fi
76767777- echo "Resizing to minimum allowed size"
7878- resize2fs -M $img
7979-8080- # And a final fsck, because of the previous truncating.
8181- fsck.ext4 -n -f $img
7777+ # We may want to shrink the file system and resize the image to
7878+ # get rid of the unnecessary slack here--but see
7979+ # https://github.com/NixOS/nixpkgs/issues/125121 for caveats.
82808381 if [ ${builtins.toString compressImage} ]; then
8482 echo "Compressing image"