From 16cf8a8e621cd6469fecc842cefcc6c048f3d3c6 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Tue, 2 Mar 2021 20:31:50 +0100 Subject: [PATCH] fixup ext2 image generation --- nixos-modules/lib/make-ext2-fs.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos-modules/lib/make-ext2-fs.nix b/nixos-modules/lib/make-ext2-fs.nix index f12e425..98d2103 100644 --- a/nixos-modules/lib/make-ext2-fs.nix +++ b/nixos-modules/lib/make-ext2-fs.nix @@ -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.