Commit Graph

21 Commits

Author SHA1 Message Date
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
Artturin
64b4af5296 kmod-blacklist-ubuntu: 22-1.1ubuntu1 -> 28-1ubuntu4 2021-11-17 18:50:41 +02:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Markus Kowalewski
077cd7210b
kmod-blacklist: add license 2020-06-30 21:10:46 +02:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
volth
c814d72b51 treewide: name -> pname 2019-08-17 10:54:38 +00:00
Graham Christensen
7fdba7c74e
Merge pull request #43834 from ryantm/https2
treewide: http -> https
2018-07-19 21:31:36 -04:00
Ryan Mulligan
df8062c45b treewide: http -> https 2018-07-19 18:12:04 -07:00
Ambroz Bizjak
0ed43b5643 kmod-blacklist-ubuntu: Fix typo from commit "do not blacklist i2c_i801"
That commit did not actually accomplish its intent because it misspelled the module name.
2018-06-29 22:14:05 +02:00
Robin Gloster
785e45ac06
Revert "Revert "kmod-blacklist-ubuntu: 9.3 -> 22.1""
This reverts commit 8c410f4b18 with a fix
to make the tests run correctly. bochs-drm must not be blacklisted for
that.
2017-03-23 10:10:04 +01:00
Vladimír Čunát
8c410f4b18
Revert "kmod-blacklist-ubuntu: 9.3 -> 22.1"
This reverts commit 0c262a639e.
It broke X tests, though it's not clear why ATM.  Discussion:
https://github.com/NixOS/nixpkgs/pull/23890#issuecomment-288528788
2017-03-22 21:45:22 +01:00
Peter Hoeg
605ee9e92b kmod-blacklist-ubuntu: do not blacklist i2c_i801 2017-03-14 18:06:44 +08:00
Peter Hoeg
0c262a639e kmod-blacklist-ubuntu: 9.3 -> 22.1 2017-03-14 18:06:29 +08:00
Tuomas Tynkkynen
21f17d69f6 treewide: Add lots of meta.platforms
Build-tested on x86_64 Linux & Mac.
2016-08-02 21:42:43 +03:00
Vladimír Čunát
9f7d7adb05 Revert "kmod-blacklist-ubuntu: update to Vivid"
This reverts commit 0307c27219.

The only change was blacklisting bochs-drm, but that breaks our VM setup
and I don't see a good reason to do that on the Ubuntu issue
(just some PowerPC failure).

Defaulting to qxl driver might be better anyway, but I'm not venturing
such changes now.
2015-06-08 12:34:24 +02:00
Vladimír Čunát
0307c27219 kmod-blacklist-ubuntu: update to Vivid 2015-06-02 20:17:01 +02:00
Tuomas Tynkkynen
c323c87565 kmod-blacklist-ubuntu: Fix source package URL returning 404
The original URL http://archive.ubuntu.com/ubuntu/pool/main/k/kmod/kmod_9-3ubuntu1.debian.tar.gz
is dead.
2015-04-28 11:15:54 +03:00
William A. Kennington III
e05b68ed05 More cleanups of sw/sbin 2015-04-01 14:26:22 -07:00
Vladimír Čunát
80f8b2cfbd kmod-blacklist-ubuntu: fix references to binaries 2014-02-02 09:45:59 +01:00
Vladimír Čunát
22690a8cd5 kmod-blacklist-ubuntu: fetch from tar.gz, not bazaar
Now the source is just a miniature archive.
2014-02-02 09:41:11 +01:00
Vladimír Čunát
5acaa980a5 pull module blacklist from Ubuntu and use it by default
People often have serious problems due to bogus modules like *fb.
2014-01-28 12:52:36 +01:00