#900806 console-setup: 'lsmod: not found' during install

#900806#5
Date:
2018-06-05 09:02:45 UTC
From:
To:
console-setup uses 'lsmod' in config script but does not depend on kmod (or a depend package). Thus 'lsmod: not found' messages are thrown when installing console-setup on a minbase install.



STEPS TO REPRODUCE:
debootstrap --variant=minbase --include='inetutils-ping,iproute2' sid http://httpredir.debian.org/debian
apt-get update
apt-get install -y dialog libreadline-dev apt-utils
apt-get install -y console-setup



OUTPUT:

Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
[...]
0 upgraded, 70 newly installed, 0 to remove and 0 not upgraded.
Need to get 33.2 MB of archives.
After this operation, 143 MB of additional disk space will be used.
[...]
Get:11 http://ftp.de.debian.org/pub/debian sid/main amd64 console-setup all 1.184 [89.4 kB]
[...]
Preconfiguring packages ...
/tmp/console-setup.config.2ZRvpw: 1114: /tmp/console-setup.config.2ZRvpw: lsmod: not found
Fetched 33.2 MB in 6s (5689 kB/s)
[...]
Selecting previously unselected package console-setup.
Preparing to unpack .../10-console-setup_1.184_all.deb ...
Unpacking console-setup (1.184) ...
[...]
Setting up console-setup (1.184) ...
/var/lib/dpkg/info/console-setup.config: 1114: /var/lib/dpkg/info/console-setup.config: lsmod: not found
[...]



Cheers
Jakob

#900806#10
Date:
2018-06-05 15:37:45 UTC
From:
To:
Hi,

Jakob <wearenotalone@freenet.de> (2018-06-05):

Thanks for spotting this; I'm not sure there's much harm in there
though, as that's only used to adjust a setting if needed:
| if lsmod | grep -q speakup; then
|     case "$CODESET" in
|         CyrAsia|CyrSlav|Greek)
|             CODESET="Full$CODESET"
|             ;;
|     esac
| fi

A similar thing happens in font-switch.

Interested people could patch those to guard them with a check on lsmod?


Cheers,

#900806#15
Date:
2021-06-14 23:20:58 UTC
From:
To:
Greetings;

I sent you an email a couple of days ago and haven't heard from you.

Please confirm if you received my email?

Yours Sincerely,
Engr. Gordon Hirschy
email; engrgh@engrgordon.com