[Pkg-sysvinit-devel] Bug#652512: initscripts: /lib/init/rw not removed

Roger Leigh rleigh at codelibre.net
Sun Dec 18 00:10:16 UTC 2011


On Sun, Dec 18, 2011 at 12:59:26AM +0100, Christoph Anton Mitterer wrote:
> Apparently /lib/init/rw should be dropped by this release,.. but:
> Unpacking replacement initscripts ...
> dpkg: warning: unable to delete old directory '/lib/init/rw': Device or resource busy
> # mount
> tmpfs on /lib/init/rw type tmpfs (rw,nosuid,size=5242880,mode=755,size=5242880,mode=755)
> ...

This is unfortunately impossible to resolve for wheezy due to the
following considerations:

- packages needing to migrate from /lib/init/rw to /run need to
  Depend on the new initscripts for /run to be set up and available.
- this means that we can't directly remove /lib/init/rw in the
  postinst, since all the other packages do their migration in
  their postinsts after we finished, so we can't remove it until
  they are done.

I'm reconsidering the dropping of the /lib/init/rw directory, and
just dropping the tmpfs mount.  This would then permit us to
remove it entirely post-wheezy, but have it present but non-
functional for wheezy.  Any suggestions would of course be
welcome!  We could do it at the next reboot... but the rootfs isn't
guaranteed to be writable, so pre/postinst is really the only
reliable option that I can see.

> Even when unmounted, there's still a lot of crap inside /lib/init/rw
> in my case:
> # tree /lib/init/rw/ -a
> /lib/init/rw/
> ├── resolvconf
> │   ├── interface
> │   └── resolv.conf
> └── sendsigs.omit.d
>     └── rsyslog -> /var/run/rsyslogd.pid

I know for sure that resolvconf and rsyslog migrated to /run a while
back.  What are the timestamps on these files?  Are they new, or
were they on the rootfs but hidden by the tmpfs mount?


Thanks,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.





More information about the Pkg-sysvinit-devel mailing list