Devuan logs - #319, boring messages


Message sent to devuan-bugs@lists.dyne.org, owner@bugs.devuan.org:


Subject: bug#319: openrc savecache doesnt run start()
From: dxrobertson <dxrobertson@gmail.com>
Date: Tue, 23 Apr 2019 07:29:14 -0400
To: submit@bugs.devuan.org

--000000000000c4b95f058730e52d
Content-Type: multipart/alternative; boundary="000000000000c4b95b058730e52b"

--000000000000c4b95b058730e52b
Content-Type: text/plain; charset="UTF-8"

Package: openrc

Version: 0.40.3-1

Severity: normal



Dear Maintainer,


The start() routine in /etc/init.d/savecache does not run. If you run my

attached savecache (rc-service savecache start), "SAVECACHE TEST GOT HERE"
will

be displayed, but "SAVECACHE TEST NOT GETTING HERE" will not be displayed.
The start() routine is never entered.


The problem stems from the LSB header information in savecache. These lines
of

code are somehow confusing openrc-run, openrc-run never runs start().


If the LSB header info is removed, savecache runs fine; start() is then run.




Next issue, is savecache even needed? It appears this script is to run in

runlevel off at shutdown, to save /run/openrc/deptree and
/run/openrc/softlevel

to /lib/rc. Arent deptree and softlevel always re-generated at startup
anyway?

Are these cached files in /lib/rc ever used?




Next, if the cached files are used and needed, wouldnt /var/cache be a
better

home for them, something like /var/cache/openrc?




-- System Information:

Distributor ID: Devuan

Description: Devuan GNU/Linux beowulf/ceres

Release: 10

Codename: n/a

Architecture: x86_64


Kernel: Linux 4.19.0-4-amd64 (SMP w/4 CPU cores)

Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)

Shell: /bin/sh linked to /bin/dash

Init: sysvinit (via /sbin/init)

LSM: AppArmor: enabled

Versions of packages openrc depends on:

ii init-system-helpers 1.56+devuan1

ii insserv 1.18.0-2

ii libaudit1 1:2.8.4-2

ii libc6 2.28-8

ii libeinfo1 0.40.3-1

ii libpam0g 1.3.1-5

ii librc1 0.40.3-1

ii libselinux1 2.8-1+b1

openrc recommends no packages.


Versions of packages openrc suggests:

pn policycoreutils <none>

ii sysvinit-core 2.93-8+devuan1

--000000000000c4b95b058730e52b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><p style=3D"margin:0px;white-space:pre-wrap">Package: open=
rc</p>
<p style=3D"margin:0px;white-space:pre-wrap">Version: 0.40.3-1</p>
<p style=3D"margin:0px;white-space:pre-wrap">Severity: normal</p>
<p style=3D"margin:0px;white-space:pre-wrap"><br></p><p style=3D"margin:0px=
;white-space:pre-wrap"><br></p>
<p style=3D"margin:0px;white-space:pre-wrap">Dear Maintainer,</p>
<p style=3D"margin:0px;white-space:pre-wrap"><br></p>
<p style=3D"margin:0px;white-space:pre-wrap">The start() routine in /etc/in=
it.d/savecache does not run.  If you run my</p>
<p style=3D"margin:0px;white-space:pre-wrap">attached savecache (rc-service=
 savecache start), &quot;SAVECACHE TEST GOT HERE&quot; will</p>
<p style=3D"margin:0px;white-space:pre-wrap">be displayed, but &quot;SAVECA=
CHE TEST NOT GETTING HERE&quot; will not be displayed.  The start() routine=
 is never entered.</p>
<p style=3D"margin:0px;white-space:pre-wrap"><br></p>
<p style=3D"margin:0px;white-space:pre-wrap">The problem stems from the LSB=
 header information in savecache.  These lines of</p>
<p style=3D"margin:0px;white-space:pre-wrap">code are somehow confusing ope=
nrc-run, openrc-run never runs start().</p>
<p style=3D"margin:0px;white-space:pre-wrap"><br></p>
<p style=3D"margin:0px;white-space:pre-wrap">If the LSB header info is remo=
ved, savecache runs fine; start() is then run.</p>
<p style=3D"margin:0px;white-space:pre-wrap"><br></p>
<p style=3D"margin:0px;white-space:pre-wrap"><br></p>
<p style=3D"margin:0px;white-space:pre-wrap"><br></p>
<p style=3D"margin:0px;white-space:pre-wrap">Next issue, is savecache even =
needed?  It appears this script is to run in</p>
<p style=3D"margin:0px;white-space:pre-wrap">runlevel off at shutdown, to s=
ave /run/openrc/deptree and /run/openrc/softlevel</p>
<p style=3D"margin:0px;white-space:pre-wrap">to /lib/rc.  Arent deptree and=
 softlevel always re-generated at startup anyway?</p>
<p style=3D"margin:0px;white-space:pre-wrap">Are these cached files in /lib=
/rc ever used?</p>
<p style=3D"margin:0px;white-space:pre-wrap"><br></p>
<p style=3D"margin:0px;white-space:pre-wrap"><br></p>
<p style=3D"margin:0px;white-space:pre-wrap"><br></p>
<p style=3D"margin:0px;white-space:pre-wrap">Next, if the cached files are =
used and needed, wouldnt /var/cache be a better</p>
<p style=3D"margin:0px;white-space:pre-wrap">home for them, something like =
/var/cache/openrc?</p><p style=3D"margin:0px;white-space:pre-wrap"><br></p>=
<p style=3D"margin:0px;white-space:pre-wrap"><br></p><p style=3D"margin:0px=
;white-space:pre-wrap"><br></p><p style=3D"margin:0px;white-space:pre-wrap"=
>

</p><p style=3D"margin:0px;white-space:pre-wrap">-- System Information:</p>=
<p style=3D"margin:0px;white-space:pre-wrap">Distributor ID:	Devuan</p><p s=
tyle=3D"margin:0px;white-space:pre-wrap">Description:	Devuan GNU/Linux beow=
ulf/ceres</p><p style=3D"margin:0px;white-space:pre-wrap">Release:	10</p><p=
 style=3D"margin:0px;white-space:pre-wrap">Codename:	n/a</p><p style=3D"mar=
gin:0px;white-space:pre-wrap">Architecture: x86_64</p><p style=3D"margin:0p=
x;white-space:pre-wrap"><br></p><p style=3D"margin:0px;white-space:pre-wrap=
">Kernel: Linux 4.19.0-4-amd64 (SMP w/4 CPU cores)</p><p style=3D"margin:0p=
x;white-space:pre-wrap">Locale: LANG=3Den_US.UTF-8, LC_CTYPE=3Den_US.UTF-8 =
(charmap=3DUTF-8), LANGUAGE=3Den_US.UTF-8 (charmap=3DUTF-8)<br></p><p style=
=3D"margin:0px;white-space:pre-wrap">Shell: /bin/sh linked to /bin/dash<br>=
</p><p style=3D"margin:0px;white-space:pre-wrap">Init: sysvinit (via /sbin/=
init)<br></p><p style=3D"margin:0px;white-space:pre-wrap">LSM: AppArmor: en=
abled<br></p><p style=3D"margin:0px;white-space:pre-wrap">
</p><p style=3D"margin:0px;white-space:pre-wrap">Versions of packages openr=
c depends on:<br></p><p style=3D"margin:0px;white-space:pre-wrap">ii  init-=
system-helpers  1.56+devuan1<br></p><p style=3D"margin:0px;white-space:pre-=
wrap">ii  insserv              1.18.0-2<br></p><p style=3D"margin:0px;white=
-space:pre-wrap">ii  libaudit1            1:2.8.4-2<br></p><p style=3D"marg=
in:0px;white-space:pre-wrap">ii  libc6                2.28-8<br></p><p styl=
e=3D"margin:0px;white-space:pre-wrap">ii  libeinfo1            0.40.3-1<br>=
</p><p style=3D"margin:0px;white-space:pre-wrap">ii  libpam0g             1=
.3.1-5<br></p><p style=3D"margin:0px;white-space:pre-wrap">ii  librc1      =
         0.40.3-1<br></p><p style=3D"margin:0px;white-space:pre-wrap">ii  l=
ibselinux1          2.8-1+b1<br></p><p style=3D"margin:0px;white-space:pre-=
wrap">
</p><p style=3D"margin:0px;white-space:pre-wrap">openrc recommends no packa=
ges.<br></p><p style=3D"margin:0px;white-space:pre-wrap"><br></p><p style=
=3D"margin:0px;white-space:pre-wrap">Versions of packages openrc suggests:<=
/p><p style=3D"margin:0px;white-space:pre-wrap">pn  policycoreutils  &lt;no=
ne&gt;<br></p><p style=3D"margin:0px;white-space:pre-wrap">ii  sysvinit-cor=
e    2.93-8+devuan1<br></p><p style=3D"margin:0px;white-space:pre-wrap">
</p><p style=3D"margin:0px;white-space:pre-wrap"><br></p><p style=3D"margin=
:0px;white-space:pre-wrap"><br></p></div>

--000000000000c4b95b058730e52b--
--000000000000c4b95f058730e52d
Content-Type: application/octet-stream; name=savecache
Content-Disposition: attachment; filename=savecache
Content-Transfer-Encoding: base64
Content-ID: <f_jutpaqf20>
X-Attachment-Id: f_jutpaqf20

IyEvc2Jpbi9vcGVucmMtcnVuCiMgQ29weXJpZ2h0IChjKSAyMDA3LTIwMTUgVGhlIE9wZW5SQyBB
dXRob3JzLgojIFNlZSB0aGUgQXV0aG9ycyBmaWxlIGF0IHRoZSB0b3AtbGV2ZWwgZGlyZWN0b3J5
IG9mIHRoaXMgZGlzdHJpYnV0aW9uIGFuZAoj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0byBzYXZlIGRlcGVuZGVuY3kg
Y2FjaGUiCgkJaWYgeWVzbm8gIiR7UkNfR09JTkdET1dOfSI7IHRoZW4KCQkJcmV0dXJuIDAKCQlm
aQoJCXJldHVybiAxCglmaQoJZWJlZ2luICJTYXZpbmcgZGVwZW5kZW5jeSBjYWNoZSIKCWxvY2Fs
IHJjPTAgc2F2ZT0KCWZvciB4IGluIGRlcGNvbmZpZyBkZXB0cmVlIHJjLmxvZyBzaHV0ZG93bnRp
bWUgc29mdGxldmVsOyBkbwoJCVsgLWUgIiRSQ19TVkNESVIvJHgiIF0gJiYgc2F2ZT0iJHNhdmUg
JFJDX1NWQ0RJUi8keCIKCWRvbmUKCWlmIFsgLW4gIiRzYXZlIiBdOyB0aGVuCgkJY3AgLXAgJHNh
dmUgIiRSQ19MSUJFWEVDRElSIi9jYWNoZQoJCXJjPSQ/CglmaQoJaWYgeWVzbm8gIiR7UkNfR09J
TkdET1dOfSI7IHRoZW4KCQlpZiBbICRyYyAtbmUgMCBdOyB0aGVuCgkJCWVlcnJvciAiVW5hYmxl
IHRvIHNhdmUgZGVwZW5kZW5jeSBjYWNoZSIKCQlmaQoJCWVlbmQgMAoJZmkKCWVlbmQgJHJjICJV
bmFibGUgdG8gc2F2ZSBkZXBlbmRlbmN5IGNhY2hlIgp9Cg==
--000000000000c4b95f058730e52d--


Message sent:


From: owner@bugs.devuan.org (Devuan bug Tracking System)
To: dxrobertson <dxrobertson@gmail.com>
Subject: bug#319: Acknowledgement (openrc savecache doesnt run start())

Thank you for the problem report you have sent regarding Devuan.
This is an automatically generated reply, to let you know your message has
been received.  It is being forwarded to the developers mailing list for
their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 owner@bugs.devuan.org

If you wish to submit further information on your problem, please send
it to 319@bugs.devuan.org (and *not* to
submit@bugs.devuan.org).

Please do not reply to the address at the top of this message,
unless you wish to report a problem with the bug-tracking system.

Devuan Bugs Owner
(administrator, Devuan bugs database)


Message sent to devuan-bugs@lists.dyne.org, owner@bugs.devuan.org:


Subject: bug#319: openrc savecache doesnt run start()
From: dxrobertson <dxrobertson@gmail.com>
Date: Wed, 24 Apr 2019 17:58:05 -0400
To: 319@bugs.devuan.org

I believe the problem to be in openrc-run.sh, the code at/around line 245:

# Load our script
lsbh=$(lsb2rcconf "$RC_SERVICE")
if [ -n "${lsbh}" ]; then
eval "${lsbh}"
else
sourcex "$RC_SERVICE"
.
.
.


I ran rc-service with the -d debug option:
rc-service -dv savecache start
Both with the LSB header present and not present, in /etc/init.d/savecache.

When running WITH the LSB header present, variable lsbh becomes:
+ lsb2rcconf /etc/init.d/savecache
+ lsbh=depend () {
        provide _all
}
And subsequently, the code at line 247 gets run:
if [ -n "${lsbh}" ]; then
eval "${lsbh}"
(This is the problem where savecache start() doesnt get run)

When running WITHOUT the LSB header present, variable lsbh becomes:
+ lsb2rcconf /etc/init.d/savecache
+ lsbh=
And subsequently, the "else" code at line 249 gets run:
else
sourcex "$RC_SERVICE"
.
.
.
(savecache start() runs)

To resolve the problem, the LSB header could simply be removed from
/etc/init.d/savecache.

I wonder why LSB is being examined at all in openrc-run scripts, I
thought (wrongly?) that LSB support was only added for /bin/sh run
scripts, so to use the sysvinit scripts without modification, in
openrc.


Message sent:


From: owner@bugs.devuan.org (Devuan bug Tracking System)
To: dxrobertson <dxrobertson@gmail.com>
Subject: bug#319: Info received (was openrc savecache doesnt run start())

Thank you for the additional information you have supplied regarding
this problem report.  It has been forwarded to the developer(s) and
to the developers mailing list to accompany the original report.

Your message has been sent to the package maintainer(s):
 owner@bugs.devuan.org

If you wish to continue to submit further information on your problem,
please send it to 319@bugs.devuan.org, as before.

Please do not reply to the address at the top of this message,
unless you wish to report a problem with the bug-tracking system.

Devuan Bugs Owner
(administrator, Devuan bugs database)


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Fri, 15 Nov 2019 21:39:01 UTC