fixup ext2 image generation

This commit is contained in:
Ehmry - 2021-03-02 20:31:50 +01:00
parent 7376302bcc
commit 16cf8a8e62
1 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,7 @@ let
grub' = pkgs.buildPackages.grub2_efi;
copyEris = lib.strings.concatMapStrings ({ source, target }: ''
cp -a --reflink=auto -t "./rootImage/${target}" "${source}"
cp -a --reflink=auto "${source}" "./rootImage/${target}"
'') contents;
in pkgs.stdenv.mkDerivation {
@ -50,6 +50,7 @@ in pkgs.stdenv.mkDerivation {
done
)
mkdir ./rootImage/eris
${copyEris}
# Make a crude approximation of the size of the target image.