Bug#977877: console-setup: setupcon --setup-dir ... generates temporary file name inside etc/console-setup directory
Hi Philip
> Very sorry about the slow reply -- a combination of debconf and family
> holidays being rather distracting.
No problem, Thanks for helping out with this.
> I think I'd looked for that, and failed to find where the file was being
> used.
As I explained before, the created tmp file (tmpkbd.*) is referenced by in a script named `setupcon`(which is generated here[1]). This script is actually kept in '/bin/setupcon' in the initrd.
Now, this script ('/bin/setupcon') is used in the initrd by the 'keymap' initrd script [2].
In fact the 'keymap' hook script [3] is what is calling the setupcon script with the --setup-dir option.
In my use case, this issue surfaced due to the use of the cryptsetup-initramfs package which triggers the run of the 'keymap' hook script by setting 'KEYMAP=y' here[4].
There *maybe*(speculating, not sure) more packages which triggers this 'keymap' hook script.
Apologies for this long answer. I hope this gives some context.
[1] https://salsa.debian.org/installer-team/console-setup/-/blob/master/setupcon?ref_type=heads#L1286
[2] https://salsa.debian.org/kernel-team/initramfs-tools/-/blob/debian/latest/scripts/init-top/keymap?ref_type=heads#L16
[3] https://salsa.debian.org/kernel-team/initramfs-tools/-/blob/debian/latest/hooks/keymap?ref_type=heads#L31
[4] https://salsa.debian.org/cryptsetup-team/cryptsetup/-/blob/debian/latest/debian/initramfs/conf-hooks.d/cryptsetup#L3
Thanks and Regards,
Adithya Balakumar
Reply to: