Bug#673207: /etc/default/rcS is perhaps a better place for FANCYTTY variable

"Didier 'OdyX' Raboud" <[email protected]>
Newsgroups gmane.linux.debian.devel.lsb
Organization Debian, the Universal OS
Message-ID <[email protected]>
Le 21.05.2012 13:47, Roger Leigh a écrit :
> I'm not sure what you mean here.  Do you plan to keep the definition
> in two places (for backward compatibility?)?  Which would be the
> "preferred" location, i.e. which would take priority over the other?

Given that /etc/lsb-base-logging.sh is a documented interface supposed
to be a full-fledged shell script and that FANCYTTY is a single shell
variable, I would rather opt for it to be in a simpler file such as
/e/d/rcS.

Then if people want to do funky stuff like conditional setting in
/e/lsb-base-logging.sh, free to them. This file is not a conffile of
lsb-base nor of any package AFAIK and is usually not present.

>> ... with some maintainer script code in lsb-base and/or sysvinit to copy
>> an existing value of FANCYTTY from /e/lsb-base-logging.sh to /e/d/rcS .
> 
> Is this just on upgrade e.g. in the maintainer scripts?  To be run just
> once to migrate the setting?  Or for all changes?

Hmm; now that I think of it, it would be possible to simply have
/etc/default/rcS ship an empty (or even commented) FANCYTTY= definition
and let /etc/lsb-base-logging.sh untouched: if an admin added a FANCYTTY
definition to his /e/lsb-base-logging.sh, then it would simply continue
to work; if he hasn't too and future users would be pointed at /e/d/rcS.
Nice.

Cheers,

OdyX
signature.asc (application/pgp-signature, 663 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)

iQGcBAEBAgAGBQJPujAMAAoJEIvPpx7KFjRVqPIL/2MxgDOjMtMp3Ak9DOxau/Ef
qC/RmhGK98Sgh+BfbFrsYFubavUftPlVlrOk0KgUzw83zYDacyxqhMr0IiCxsYUl
Ak3RPglY1pP6WG0gxAJspeuqtLWoDbW3u/YAmMqYNeHtOAqJt5tQxNt856sYb+ha
9jyzMiWC64AtolvQroAtdBvBAC6qxX08AX873p0uPaJR8ob2iRvDgoR7twgHctNQ
m4Mg1qPTmDIivQu2xmt3U2nGCgB+jkQ49f4DCXc0c333oOCjH5r6ecAe3v+BUakp
n/udYf4zvye7H3XsTgJBFikHVUuDEjb26Topp3K/37Jze3qWmqR9CP09eIKxhOYl
OSOK0m4KUL2nauMtgMlUGANr0CFUFY+3wq2SlWd82AIAtEwIqzjFYgvki7sq/pe9
LcSfOp/zcnrtu+tUGHtOQ5dlGX7qnTr/6NLMTT3wGcS51yz9FmwWdm6L2nVGrG7m
A6H/vznX640OmClPWcbsauM+aMmS0titJVS69V7WqA==
=Qft5
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.