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 <4FBA05F9.9070200__49637.309232685$1337591384$gmane$org@debian.org>
Hi Roger, and thanks for your (quick) feedback,

Le 18.05.2012 22:16, Roger Leigh a écrit :
> On Fri, May 18, 2012 at 10:00:12PM +0200, Didier Raboud wrote:
>> Le jeudi, 17 mai 2012 00.19:38, Stanislav Maslovski wrote :
>>> Evidently, if you decide to use /etc/default/rcS for this setting,
>>> this file should *not* be simply sourced from /lib/lsb/init-functions.
>>> Instead, you may use something like
>>>
>>> FANCYTTY=$([ -e /etc/default/rcS ] && . /etc/default/rcS && echo $FANCYTTY)
>>
>> After an initial perplexity, I think I now quite like this idea. From the rcS 
>> manpage: "rcS - variables that affect the behavior of boot scripts", so it 
>> would be a good fit for /etc/default/rcS.
>>
>> Given that /etc/default/rcS is managed by initscripts (from src:sysvinit), I'm 
>> hereby asking the sysvinit maintainers: what do you think?
> 
> One problem right now is that /etc/default/rcS is not a conffile, and
> is never upgraded after the initial install.  Adding the option would
> only make it available for new installs.

Just to make sure I understand that correctly: would it be possible to
let lsb-base's /lib/lsb/init-functions read FANCYTTY from /e/d/rcS right
now ?

A plan to do this would imply:

a) changing lsb-base.README.Debian (and .NEWS) to point to /e/d/rcS
instead of /e/lsb-base-logging.sh.

b) Add the above sourcing of /e/d/rcS to init-functions

c) writing maintainer scripts to make sure an already defined FANCYTTY
in /e/lsb-base-logging.sh gets written to /e/d/rcS (Policy doesn't
really allow this).

d) What else?

Cheers,

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

iQGcBAEBAgAGBQJPugYCAAoJEIvPpx7KFjRVLL4L/jLAA68tRmEd1HI0qTvYfe22
ZtquI4GLd3k6FL/ftEpy6lkNpecaN4qhRiPrSJVzPtVcQ1oo/j2iypc8k4uQk/WY
zVrvJH/Wu1IkBvJIFxEn8ZgTrFS9daqjX49nV2F6jB4Yj0M8+ZHAcR7+waipxrhQ
RapEQVEJdaruR/QkCUpjcALsis5l2DersbWp89LFMAru3cqAJ7wljUA8XrKBH5ri
t8kimMoHFdw1vcG/LO6VBYgKw2vSk8G2wQk/ZTXHyQZlQX1/xREuwdVDmBkOU7gk
uUQLm92eYhm6jpTNEBPkFEJOxCpHaxyPxKeqfZadQlTquRjmvmHCpnYIvAR88bVV
3jzTkDRfiop4eSPJEiAEC9YxEIpinupXzglpTpfTggQ1XnFjWXei3NtiKC2hkyc0
OXqyFXOawoLDMZGwub3N3WRIPb6sz6xMg3/DG2XpnqLy8EZT/M6PNRHY/6Y3QvDR
zTfXON652uRA1k6JBQ52ODLprQWFclkcJpejg1gpuA==
=7LwJ
-----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.