Copy temp files into /etc/console-setup with fixed name
Currently when using the --setup-dir
option, a temp file(tmpkbd.*
) is copied
to $SETUPDIR/etc/console-setup
, But the filename is random due to use of
mktemp for the temp file creation.
This creates reproducibility issues due to different temp filenames across multiple builds.
The temp file with the keymap information would be needed in the context of loading the keymap file in the initrd stage.
Making the file name fixed while copying into $SETUPDIR/etc/console-setup
should not cause problems as the file created from the latest run of setupcon
will be referenced in the $SETUPDIR/bin/setupcon
script.
Solves #977877
Signed-off-by: Adithya Balakumar adithya.balakumar@toshiba-tsip.com
Edited by Adithya Balakumar