Summary: | using udev + NIS prevents clean shutdown | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ernst Bachmann <e.bachmann> |
Component: | [OLD] baselayout | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | gregkh |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Ernst Bachmann
2004-02-19 05:24:03 UTC
I am open to suggestions, as I do not have NIS to test this. Ok, some suggestions: 1) remove the stop() part from /etc/init.d/net.lo Thats what I did, solved the problem for me, and I don't see much sense in stopping the loopback device anyways. 2) issue "/sbin/ifconfig lo up" in halt.sh before the pam_console_apply and tar commands. Might solve the problem, but doesn't seem like a good way to do it. 3) have /etc/inid.d/ypbind remove all NIS references in /etc/nsswitch.conf on stop, reestablish them on startup again. (Seems quite error-prone to me, in case of power-loss or reboots without going to the stop scripts) 4) wait till udev supports all devices, then there won't be a need for /lib/udev-state/devices.tar.bz2 any more, remove that part completely. This would IMHO be the best solution, but can't be done till all char devices are handled by udev. I didn't test it, but I think you don't need an actial NIS domain to verify that behavior: just changing "passwd: compat" to "passwd: db files nis" could cause the same problem. I experienced this problem too with NIS and NFS/autofs homes. If an NIS user is logged in with NFS home directory mounted the shutdown is unclean. If all users apart from root are logged out the shutdown runs correctly. I have this same problem, but I don't use NIS, I only use NFS. I have home and a few other file systems mounted as NFS, and if I shutdown with a normal user logged in, it hangs on the tar command (Saving Device Nodes). If all normal users are logged off, the shutdown executes as expected. I have tried setting the RC_DEVICE_TARBALL to no in /etc/conf.d/rc, and the shutdown does complete with a user logged in, however, the system does not boot becuase the LVM devices are missing on startup. I have tired commenting out the "ifconfig down" command in net.lo stop function, that did not seem to help the issue. I have also tried writting a script executable by a normal user, that calls /sbin/halt, sleeps for 3 seconds, and then kills the parent process ($PPID), which should log the user off, but that doesn't work either. bug #31877 appears to cover part of this problem. in the progress of working on bug #31877, this problem has been fixed as a side effect (pam_console_apply isn't called any more) The real problem behind it (loopback network device down while it might still be needed by halt.sh) hasn't been fixed afaik, but with the new baselayout its not a problem any more (as long as you don't use pam_console, but who'd want that) Many Thanks to everyone involved. |