El 12/10/23 a las 14:41, Bardot Jerome escribió:
Is there is a way to use the conf.d mecanism for files in base-files.

In my case it's for issue and issue.net.

For explanation i will imagine the directory issue.d .

Maybe it's need an option to concatenate or erase default file.
And maybe the same way to load 10- 20- etc.

The files "issue" and "issue.net" have a single line of text.
I'd like to keep base-files simple. Creating a .d mechanism for
files with one line of text seems a little bit overkill to me.

Why asking ?

- to separate my own legal issue and the default one

Well. Good news: The file containing the legal issue is /etc/motd
and it's not contained in base-files.deb. This means that it's not
a conffile in the dpkg sense. There will be no questions about it
if you change it, because base-files creates it only once in
the very first install (from debootstrap) and then does not
touch it at all ever again.

- no more dpkg question on update/upgrade.

Well, you can avoid all questions by using the
"unattended-upgrades" package. This usually
works triggered by cron, but you can also
disable the cron part and run it whenever
you want to do the upgrade. It upgrades
everything but without any questions.

What would make /etc/issue so special that
we have to change the way we handle it when
people have a generic way to avoid all sort
of questions? (not just the ones in base-files).

Do you consider unattended-upgrades not enough
for your particular needs?

Thanks.

Reply via email to