fixup ext2 image generation
This commit is contained in:
parent
7376302bcc
commit
16cf8a8e62
|
@ -4,7 +4,7 @@ let
|
||||||
grub' = pkgs.buildPackages.grub2_efi;
|
grub' = pkgs.buildPackages.grub2_efi;
|
||||||
|
|
||||||
copyEris = lib.strings.concatMapStrings ({ source, target }: ''
|
copyEris = lib.strings.concatMapStrings ({ source, target }: ''
|
||||||
cp -a --reflink=auto -t "./rootImage/${target}" "${source}"
|
cp -a --reflink=auto "${source}" "./rootImage/${target}"
|
||||||
'') contents;
|
'') contents;
|
||||||
|
|
||||||
in pkgs.stdenv.mkDerivation {
|
in pkgs.stdenv.mkDerivation {
|
||||||
|
@ -50,6 +50,7 @@ in pkgs.stdenv.mkDerivation {
|
||||||
done
|
done
|
||||||
)
|
)
|
||||||
|
|
||||||
|
mkdir ./rootImage/eris
|
||||||
${copyEris}
|
${copyEris}
|
||||||
|
|
||||||
# Make a crude approximation of the size of the target image.
|
# Make a crude approximation of the size of the target image.
|
||||||
|
|
Loading…
Reference in New Issue