Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101232 - System does not shutdown with halt or reboot with baselayout-1.12.0_pre3
Summary: System does not shutdown with halt or reboot with baselayout-1.12.0_pre3
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-03 11:11 UTC by Marcel Klein
Modified: 2005-08-11 02:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/lib/rcscripts/sh/rc-services.sh (rc-services.sh,20.04 KB, text/plain)
2005-08-05 00:40 UTC, Roy Marples (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcel Klein 2005-08-03 11:11:41 UTC
First of all, when I do a normal su and enter my root password I don't have
/sbin/, /usr/sbin/ and /usr/local/sbin in my $PATH. When I do a "su -"
everything is fine so far.

But now to my real problem, I'm not able to shutdown or reboot my system.
When I enter halt or reboot nothing happens, I just see that rc is using a high
amount of my CPU but the system is still running.
I have to do hard-shutdown (disconnect the power supply) to halt my system and
that isn't really a good thing.

I already checked the logs but they say nothing.

Reproducible: Always
Steps to Reproduce:
1. su -
2. halt|reboot
Actual Results:  
Nothing, rc is using a amount of my CPU but that's it.

Expected Results:  
Do a clean shutdown/reboot of my system. ;)

Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r1,
2.6.11-hardened-r15 i686)
=================================================================
System uname: 2.6.11-hardened-r15 i686 Intel(R) Pentium(R) M processor 1.60GHz
Gentoo Base System version 1.12.0_pre3
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa avi berkdb bitmap-fonts bonobo cdr chroot crypt cscope cups
curl doc dvd dvdr eds emboss encode esd f77 fam fbcon fftw flac foomaticdb
fortran gd gdbm ggi  gif gmp gnutls gpm gstreamer gtk gtk2 imagemagick imlib
ipv6 jpeg ldap libg++ libwww mad matroska mikmod mmx mp3 mpeg ncurses nls nptl
nptlonly ogg oggvorbis opengl oss pam pcm cia pdflib perl png python quicktime
readline samba sdl skey slang softmmu speex spell sse ssl tcltk tcpd tetex tiff
truetype truetype-fonts type1-fonts unicode vorbis xml2 xmm s xosd xv xvid zlib
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 SpanKY gentoo-dev 2005-08-03 11:47:18 UTC
does baselayout-1.11.13 work ?
Comment 2 Marcel Klein 2005-08-03 12:07:35 UTC
I was able to do a clean reboot after installing baselayout-1.11.13 . I will try
it again in a few hours.

Nevertheless, /sbin/, /usr/sbin/ and /usr/local/sbin are still missing in root's
$PATH.
Comment 3 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2005-08-03 12:31:51 UTC
(In reply to comment #2)
> Nevertheless, /sbin/, /usr/sbin/ and /usr/local/sbin are still missing in root's
> $PATH.

It's normal behaviour. 'su' doesn't change the environment. Use 'su -' for full
root's PATH, including /sbin etc.
Comment 4 Marcel Klein 2005-08-03 12:37:36 UTC
(In reply to comment #3)
> It's normal behaviour. 'su' doesn't change the environment. Use 'su -' for full
> root's PATH, including /sbin etc.

It used to work with su, too. That's why I'm confused.
Comment 5 SpanKY gentoo-dev 2005-08-03 13:03:11 UTC
ph is correct

regardless, this bug is about shutting down ... dont file/handle two different
issues in the same bug
Comment 6 Marcel Klein 2005-08-03 16:35:03 UTC
(In reply to comment #5)
> regardless, this bug is about shutting down ... dont file/handle two different
> issues in the same bug

I just mentioned it because I didn't know if the two problems are connected.

Anyway, my shutting down problem seems to be solved by the installation of
baselayout-1.11.13. Hopefully the next version of baselayout will fix the
problem of baselayout-1.12.0_pre3. 

Thank you for your help, ph and SpanKY.
Comment 7 SpanKY gentoo-dev 2005-08-03 17:21:39 UTC
UberLord: feel like tackling ?
Comment 8 Roy Marples (RETIRED) gentoo-dev 2005-08-05 00:40:43 UTC
Created attachment 65158 [details]
/lib/rcscripts/sh/rc-services.sh

Try saving this attachment as /lib/rcscripts/sh/rc-services.sh and see if that
cures it.
Comment 9 Marcel Klein 2005-08-05 14:56:34 UTC
Sadly not, still the same behavior.
Comment 10 Roy Marples (RETIRED) gentoo-dev 2005-08-05 16:08:32 UTC
baselayout-1.12.0_pre4 is now in portage - does this fix your issue?
And are you using NIS?
Comment 11 Marcel Klein 2005-08-05 16:27:15 UTC
(In reply to comment #10)
> baselayout-1.12.0_pre4 is now in portage - does this fix your issue?
Nope.

> And are you using NIS?
I'm not using NIS.

Comment 12 Roy Marples (RETIRED) gentoo-dev 2005-08-05 17:26:12 UTC
Are you able to boot without any problems?

Can you stop each service in the default runlevel manually?

If you can, can you shutdown then?

If not, can you also stop each non-baselayout provided boot service manually?

If you can, can you shutdown then?
Comment 13 Marcel Klein 2005-08-05 17:57:19 UTC
(In reply to comment #12)
> Are you able to boot without any problems?
Yep.

> Can you stop each service in the default runlevel manually?
Everything besides netmount.
rc-status told me [stopping] all the time.

I removed netmount from the default runlevel. After a hard-shutdown and normal
boot I was able to shutdown my system the normal way.

su
halt
*off*
Comment 14 Marcel Klein 2005-08-05 18:24:24 UTC
Oh, I tryed it again and it didn't work. :(
Comment 15 Marcel Klein 2005-08-05 18:31:18 UTC
Edit:

You told me to stop the other boot services when my halt fails and when I do
/etc/init.d/checkfs stop the system shuts down.
Comment 16 Roy Marples (RETIRED) gentoo-dev 2005-08-08 02:27:08 UTC
Are you by any chance using samba, cups and vmware? If not, please post the
contents of your runlevel (ie what services you start)
Comment 17 Roy Marples (RETIRED) gentoo-dev 2005-08-11 02:47:29 UTC
pre5 is out, it should fix your problem