View previous topic :: View next topic |
Author |
Message |
psy_ill Tux's lil' helper


Joined: 06 Jul 2003 Posts: 106
|
Posted: Sat Sep 23, 2006 12:31 pm Post subject: bootmisc's "Cleaning /tmp directory" reboots the c |
|
|
When I start Gentoo and the boot process comes to the "bootmisc"-script, the system reboots at "Cleaning /tmp directory".
The next time the boot process runs (just after the reboot) everything works and the system is brought up.
If I restart the system with "reboot" as root, it does the same thing, first half a boot to the "Cleaning /tmp directory"-point, then reboot, and the next boot works.
Why does the boot process fail every other time and what to do about it? |
|
Back to top |
|
 |
rsa4046 l33t


Joined: 07 Feb 2005 Posts: 660 Location: The Big H, a bit SSW
|
Posted: Sat Sep 23, 2006 3:47 pm Post subject: |
|
|
Looking at /etc/init.d/bootmisc, unless I'm misreading the script it seems that if WIPE_TMP="yes" in /etc/conf.d/bootmisc, the message you get should be
"Wiping /tmp directory" rather than "Cleaning /tmp directory": Code: | #
# Clean up /tmp directory
#
if [[ -z ${CDBOOT} ]] && [[ -d /tmp ]] ; then
cd /tmp
if [[ ${WIPE_TMP} == "yes" ]] ; then
ebegin "Wiping /tmp directory"
# This eval stuff sucks, so if someone has a better *working*
# solution, please file a bug at http://bugs.gentoo.org/
# Originally ripped from Debian init scripts
local exceptions="
'!' -name . -a
'!' '(' -uid 0 -a
'('
-path './lost+found/*' -o
-path './quota.user/*' -o
-path './aquota.user/*' -o
-path './quota.group/*' -o
-path './aquota.group/*' -o
-path './.journal/*'
')'
')'"
# First kill most files, then kill empty dirs
eval find . -xdev -depth ${exceptions} ! -type d -print0 | xargs -0 rm -f --
eval find . -xdev -depth ${exceptions} -type d -empty -exec rmdir '{}' \\';'
eend 0
else
ebegin "Cleaning /tmp directory"
(
rm -f /tmp/.X*-lock /tmp/esrv* /tmp/kio* /tmp/jpsock.* /tmp/.fam*
rm -rf /tmp/.esd* /tmp/orbit-* /tmp/ssh-* /tmp/ksocket-* /tmp/.*-unix
) &> /dev/null
eend 0
fi
(
# Make sure our X11 stuff have the correct permissions
# Omit the chown as bootmisc is run before network is up
# and users may be using lame LDAP auth #139411
rm -rf /tmp/.{ICE,X11}-unix
mkdir -p /tmp/.{ICE,X11}-unix
#chown 0:0 /tmp/.{ICE,X11}-unix
chmod 1777 /tmp/.{ICE,X11}-unix
[[ -x /sbin/restorecon ]] && restorecon /tmp/.{ICE,X11}-unix
) &> /dev/null
fi
| Maybe check /etc/conf.d/bootmisc for an error?
Edit later: I probably misunderstood, do you want to wipe /tmp? |
|
Back to top |
|
 |
psy_ill Tux's lil' helper


Joined: 06 Jul 2003 Posts: 106
|
Posted: Sun Sep 24, 2006 8:40 am Post subject: |
|
|
No, that's not the problem. I don't want to wipe /tmp, and I have set WIPE_TMP to "no". That part of the bootmisc script works.
The problem is that every other boot, the boot process stops at "Cleaning /tmp directory", at which the system reboots.
At the following boot, everything works without anything unusual happening, no annoying reboot, and my system is up. |
|
Back to top |
|
 |
rsa4046 l33t


Joined: 07 Feb 2005 Posts: 660 Location: The Big H, a bit SSW
|
Posted: Sun Sep 24, 2006 4:57 pm Post subject: |
|
|
Perhaps there is a persistent file in /tmp that it causing a conflict; what about setting WIPE_TMP to "yes" for one boot cycle, and seeing if that eliminates the hiccup? |
|
Back to top |
|
 |
psy_ill Tux's lil' helper


Joined: 06 Jul 2003 Posts: 106
|
Posted: Mon Sep 25, 2006 9:04 pm Post subject: |
|
|
Ok, I set WIPE_TMP to "yes" and rebooted the system.
What a change! Now it says "Wiping /tmp directory" before it reboots the same way as it did before
No, that was apparantly not the right answer. But the /tmp directory got wiped for sure.
There is no files left which could be causing a conflict. The only thing left is the erroneous behaviour. |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|