dockerTools.exportImage: Make $out a tarball again

This commit is contained in:
Robert Hensing 2021-09-29 09:34:45 +02:00
parent 63bf4539b9
commit 1a0edf135a

View File

@ -287,6 +287,12 @@ rec {
echo "Packing raw image..."
tar -C mnt --hard-dereference --sort=name --mtime="@$SOURCE_DATE_EPOCH" -cf $out/layer.tar .
'';
postUmount = ''
mv $out/layer.tar .
rm -rf $out
mv layer.tar $out
'';
};
# Create an executable shell script which has the coreutils in its