commit b09723345c16de8a76686e07882a544b731349df
parent 1781d4b6e45e546cf14cba376204d2e9c81e67a8
Author: Daniel Barlow <dan@telent.net>
Date: Tue, 23 Jan 2024 11:57:06 +0000
don't put all of util-linux in recovery
it adds ~ 5MB to the image size
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git 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
];