From b09723345c16de8a76686e07882a544b731349df Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Tue, 23 Jan 2024 11:57:06 +0000 Subject: [PATCH] don't put all of util-linux in recovery it adds ~ 5MB to the image size --- examples/recovery.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/recovery.nix b/examples/recovery.nix index ea742fb..cf0166c 100644 --- a/examples/recovery.nix +++ b/examples/recovery.nix @@ -4,7 +4,11 @@ let svc = config.system.service; inherit (pkgs.pseudofile) dir symlink; inherit (pkgs.liminix.services) oneshot longrun bundle target; - + some-util-linux = pkgs.runCommand "some-util-linux" {} '' + mkdir -p $out/bin + cd ${pkgs.util-linux-small}/bin + cp fdisk sfdisk mkswap $out/bin + ''; in rec { imports = [ ../modules/network @@ -76,7 +80,7 @@ in rec { btrfs-progs mtdutils # mtd, jffs2, ubifs dtc # you never know when you might need device tree stuff - util-linux-small # fdisk + some-util-linux libubootenv # fw_{set,print}env pciutils ];