Re: IMPORTANT: SysVinit & umounting

Roderich Schupp (rsch@ExperTeam.de)
Thu, 17 Sep 1998 23:57:06 +0200


miquels@cistron.nl (Miquel van Smoorenburg) said:
> If the rootfs cannot be unmounted (which is really remounted R/O)
> cleanly at shutdown with newer kernels, you should investigate the
> reason and fix the bug instead of guessing what is could be and
> inventing a workaround.

What's happening is that init still has mmaped a deleted version
of /etc/ld.so.cache (ldconfig deleted the old one when building
a new one). This deleted file which still has some live reference
prevents the RO remount of root.
Using -static linking fixes this (and also the case when you
just reinstalled your libc). Or you could still link dynamically, but with
"-Wl,-rpath,/lib". When ld-linux.so looks for libc, it first
checks the RPATH contained in the executable (if any). Failing that
it will mmap /etc/ld.so.cache and use the information there.
I'm using the latter and the dirty shutdowns have gone away :)

Cheers, Roderich

--
Neben Eden eben

Neben Amor nie adretter die Liebe grte!

Bier! Feten! Gesegnete Freibetrge! Bei Leid Retter da!

.. ein Roman eben.

Roderich Schupp mailto:rsch@ExperTeam.de ExperTeam GmbH http://www.experteam.de/ Munich, Germany linux:2.1.122

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/