portmap should be stopped as soon as it is no longer needed, which is right after NFS filesystems are unmounted. The unmounting is done by unmountnfs.sh from sysvinit. It properly defines an LSB header to say that portmap should be stopped after it. The trouble is that nothing interprets this header anymore as upstart does not support this method of shutdown.
When libc6 is upgraded, this means portmap keeps /lib/libc.so.xxxxx open, and so / cannot be remounted as readonly, causing filesystem corruption (this was reported in the comments of bug #672177 by "ingo".
So portmap should define an event to stop on and sysvinit should emit that event when it happens.
Binary package hint: portmap
This is related, but not the same, as bug #672177
portmap should be stopped as soon as it is no longer needed, which is right after NFS filesystems are unmounted. The unmounting is done by unmountnfs.sh from sysvinit. It properly defines an LSB header to say that portmap should be stopped after it. The trouble is that nothing interprets this header anymore as upstart does not support this method of shutdown.
When libc6 is upgraded, this means portmap keeps /lib/libc.so.xxxxx open, and so / cannot be remounted as readonly, causing filesystem corruption (this was reported in the comments of bug #672177 by "ingo".
So portmap should define an event to stop on and sysvinit should emit that event when it happens.