1 |
On Wed, 17 Jun 2020 10:58:03 -0400 |
2 |
Mike Gilbert <floppym@g.o> wrote: |
3 |
|
4 |
> On Wed, Jun 17, 2020 at 7:42 AM Ulrich Mueller <ulm@g.o> wrote: |
5 |
> > |
6 |
> > >>>>> On Wed, 17 Jun 2020, Michał Górny wrote: |
7 |
> > |
8 |
> > > Can we please put users above silly politics? Gentoo 'does not |
9 |
> > > depend' on any non-free package to print the warning. If people |
10 |
> > > have hardware that requires non-free firmware, the least we can |
11 |
> > > do is point out where to get this firmware from. |
12 |
> > |
13 |
> > s/If/If and only if/ and I'll be fine with it. :) |
14 |
> |
15 |
> Are you proposing that the ebuild inspect the user's hardware and/or |
16 |
> kernel config before printing a warning? That sounds like a terrible |
17 |
> idea to me. Who is going to maintain the problematic hardware list? |
18 |
|
19 |
The kernel. Try 'modinfo -F firmware iwlwifi'. |
20 |
e.g. something like that could work: |
21 |
modinfo -F firmware $(lsmod | sed '1d' | awk '{print $1}') |
22 |
|
23 |
|
24 |
or if there is a need to be extra protective, iterate over all |
25 |
installed modules. |