[Pkg-sysvinit-devel] Bug#679612: return of the undead: /lib/init/rw

Michael Biebl biebl at debian.org
Sat Jun 30 11:50:10 UTC 2012


Hi,

On 30.06.2012 10:51, Roger Leigh wrote:
> On Sat, Jun 30, 2012 at 10:23:11AM +0200, Sven Joachim wrote:
>> On 2012-06-30 09:34 +0200, Michael Biebl wrote:
>>
>>> it seems, instead of removing /lib/init/rw,
>>
>> The initscripts package does not remove that directory, but you're free
>> to do that yourself.  In fact, I did it months ago.
> 
> This is certainly true.
> 
>>> initscripts now forcefully creates /lib/init/rw on each boot.
>>
>> Are you sure that it's not some other package's fault?  I don't see any
>> code in initscripts that would create /lib/init/rw.

My bad, I think this was a red herring...


> I just double-checked, including rebooting a current sid system in a
> VM, and it's not created at boot there.  I did have an empty
> /lib/init/rw[/sendsigs.omit.d] on my main system, but removing it and
> rebooting did not result in it being recreated.
> 
> Do you have another package with an init script which recreates it?
> 
> The only recent change relating to /lib/init/rw is relating to
> bootclean, where we clean it before mountall so that if there was any
> residual data in the directory from upgrade, we clean it out to save
> space.  Other than that, there have been no changes since its removal
> last year.

Yeah, with todays reboot I noticed, that bootclean was printing a
message about cleaning up /lib/init/rw.
I've never seen that message before. So I was wondering why this script
was suddenly talking about /lib/init/rw when this directory was supposed
to be long gone.

I've checked the date of the directory, and it was last modified this
morning.
I was of the opinion, that initscripts was supposed to clean up i.e.
remove /lib/init/rw on upgrades (vaguely remember out discussion about
rsyslog and the leftover sendsigs.omit.d directory [1]).
Apparently this is not the case.
So, I was mislead by the date of the directory and falsely concluded
that the directory was created by initscripts.

Removing it manually, does indeed get rid of it for good.

So I guess this is mostly just a misunderstanding of what initscripts
was supposed to do with /lib/init/rw on upgrades.
I thought it would rm -rf it. I don't quick see the reason why it should
be kept and checked on each boot in bootclean.

Cheers,
Michael


[1] from the initscripts changelog:
 "Additionally clean up /lib/init/rw in case any files were hidden by
the (now removed) tmpfs mount at this location.  Closes: #652625."



-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20120630/9678fe64/attachment.pgp>


More information about the Pkg-sysvinit-devel mailing list