Re: [PATCH 14/20] host/rootfs: Disable unneeded BusyBox tools

Alyssa Ross
2025-09-08T09:24:38Z

[-- Attachment #1: Type: text/plain, Size: 2540 bytes --]

Demi Marie Obenour <demiobenour@gmail.com> writes:

> Spectrum OS doesn't need Hush, and the host has no networking so the
> networking tools are not needed.
>
> Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>

Generally so far I've been trying to avoid unnecessary package
overrides, since it increases the liklihood of breakages when updating
Nixpkgs. I'd put this in that bucket. I expect better tooling to
become available for keeping up with Nixpkgs changes in future (I know
it's being worked on), and when that happens, then it'll be the time for
stuff like this.

> ---
> host/rootfs/default.nix | 37 +++++++++++++++++++++++++++++++++++++
> 1 file changed, 37 insertions(+)
>
> diff --git a/host/rootfs/default.nix b/host/rootfs/default.nix
> index e09340a94e24d35080ad65d447fe1c8812df67d0..0b16523703994138781fa01e069a77c37665ff36 100644
> --- a/host/rootfs/default.nix
> +++ b/host/rootfs/default.nix
> @@ -95,18 +95,55 @@ let
> extraConfig = ''
> CONFIG_CHATTR n
> CONFIG_DEPMOD n
> + CONFIG_DUMPLEASES n
> + CONFIG_DUMPRELAY n
> + CONFIG_ENVUIDGUD n
> CONFIG_FINDFS n
> CONFIG_INIT n
> CONFIG_INSMOD n
> CONFIG_IP n
> + CONFIG_LPD n
> + CONFIG_LPQ n
> + CONFIG_LPR n
> CONFIG_LSATTR n
> CONFIG_LSMOD n
> + CONFIG_MAKEMIME n
> CONFIG_MKE2FS n
> CONFIG_MKFS_EXT2 n
> CONFIG_MODINFO n
> CONFIG_MODPROBE n
> CONFIG_MOUNT n
> + CONFIG_NTPD n
> + CONFIG_PING n
> + CONFIG_PING6 n
> + CONFIG_POPMAILDIR n
> + CONFIG_PSCAN n
> + CONFIG_REFORMMIME n
> CONFIG_RMMOD n
> + CONFIG_ROUTE n
> + CONFIG_SENDMAIL n
> + CONFIG_SETUIDGUD n
> + CONFIG_SHELL_HUSH n
> + CONFIG_SLATTACH n
> + CONFIG_SSL_CLIENT n
> + CONFIG_SVC n
> + CONFIG_SVOK n
> + CONFIG_TC n
> + CONFIG_TCPSVD n
> + CONFIG_TELNET n
> + CONFIG_TELNETD n
> + CONFIG_TFTP n
> + CONFIG_TFTPD n
> + CONFIG_TRACEROUTE n
> + CONFIG_TRACEROUTE6 n
> + CONFIG_TUNCTL n
> + CONFIG_UDHCP6 n
> + CONFIG_UDHCPC n
> + CONFIG_UDHCPD n
> + CONFIG_UDPSVD n
> + CONFIG_WGET n
> + CONFIG_WHOIS n
> + CONFIG_ZCIP n
> '';
> })
> ] ++ (with pkgsGui; [ cosmic-files crosvm foot ]);
>
> --
> 2.51.0

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]