[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#977877: console-setup: setupcon --setup-dir ... generates temporary file name inside etc/console-setup directory



Chris Hofstaedtler <zeha@debian.org> writes:

> I haven't looked at the patch at all.
...
>   loadkeys '/etc/console-setup/tmpkbd.Vox0RB' > '/dev/null'

That's ^ the bit that I hadn't worked out from looking at the code, so
that was super-helpful to me, thanks -- I finally see what's going on. :-)

In an attempt to combine the use of mktemp while allowing a fixed
filename to be used, I've extended tempfile so that it can take an
optional filename, in which case it creates a non-deterministic
directory to put it in instead, which should mean that only the fixed
bit ("default-initrd.kmap") gets into the initrd.

Here's an (untried) patch that hopefully implements that:

  https://salsa.debian.org/philh/console-setup/-/commit/96d72eae04db580261a001d9dbe0261706b68c02

Adithya,

  Thanks for putting up with all the (somewhat misguided) questions with
  such patience.
  How does that patch look to you?
  Does it work?

Cheers, Phil.
-- 
Philip Hands -- https://hands.com/~phil

Attachment: signature.asc
Description: PGP signature


Reply to: