nixpkgs/pkgs/os-specific
Alyssa Ross 0100a75801
kmod-blacklist-ubuntu: don't refer to grep/xargs
64b4af5296 ("kmod-blacklist-ubuntu: 22-1.1ubuntu1 -> 28-1ubuntu4")
doubled the size of the default initramfs.  This happened because the
upgrade introduced this configuration:

	remove iwlwifi \
	(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
	&& /sbin/modprobe -r mac80211

This meant that the grep and xargs substitutions, which had been
inactive for years, suddenly became active again and became part of
kmod-blacklist-ubuntu's closure.

Since we're already using /run/booted-system for the kmod binaries,
I think it's okay to use it for grep and xargs as well.  Both are
required NixOS packages, so they're guaranteed to be there.

Large increases in initramfs size are problematic, because it's often
not possible for users to do anything about them.  It's not always
possible to increase the size of /boot, because some filesystems like
ZFS don't support being shrunk to make way for a bigger /boot.
2022-02-21 20:57:48 +00:00
..
bsd netbsd.compat: don't use musl's sys/cdefs.h 2022-01-06 14:22:07 +00:00
darwin Merge pull request #158534 from reckenrode/moltenvk 2022-02-17 13:42:40 +01:00
linux kmod-blacklist-ubuntu: don't refer to grep/xargs 2022-02-21 20:57:48 +00:00
solo5 solo5: patch solo5-virtio-mkimage to use our Syslinux, etc 2022-02-05 21:32:18 +01:00
windows maintainers: update personal details 2021-12-31 21:48:55 +03:00