mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
dockerTools.exportImage: Make $out a tarball again
This commit is contained in:
parent
63bf4539b9
commit
1a0edf135a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user