Package: console-setup
Version: 1.199
Severity: normal

Hi,

the /etc/console-setup/ directory inside initramfs files contains a
temporary file name, like:

| # lsinitramfs /boot/initrd.img-5.9.0-4-amd64 | grep console-setup
| etc/console-setup
| etc/console-setup/null
| etc/console-setup/tmpkbd.sG7JYn

Now, whenever the initramfs gets updated, this file name changes:

| # update-initramfs -k all -u
| [...]
| # lsinitramfs /boot/initrd.img-5.9.0-4-amd64 | grep console-setup
| etc/console-setup
| etc/console-setup/null
| etc/console-setup/tmpkbd.pgOFr5

This is caused by the behavior of `setupcon --setup-dir ...` as used
within /usr/share/initramfs-tools/hooks/keymap.

Please consider using a fixed filename inside setupcon instead,
a) making comparison of initramfs content easier, and
b) also preventing to end up with multiple configuration files
inside the console-setup directory, e.g. when invoking
`setupcon --setup-dir ...`:

| # rm -rf /tmp/foo
| # setupcon --setup-dir /tmp/foo
| # setupcon --setup-dir /tmp/foo
| # setupcon --setup-dir /tmp/foo
| # ls /tmp/foo/etc/console-setup
| null  tmpkbd.D412yM  tmpkbd.SBPup5  tmpkbd.ph1zn8

regards
-mika-

Reply via email to