Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133144 - System will not reboot or shutdown completely
Summary: System will not reboot or shutdown completely
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-12 12:36 UTC by cyrus
Modified: 2006-05-12 22:38 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cyrus 2006-05-12 12:36:47 UTC
After doing an emerge -auv system I noticed the following problems.

When trying to reboot (with shutdown -r now or reboot) the system would halt at unmounting local filesystems. After some research I narrowed the issue down to the /etc/init.d/halt.sh file (this section of the file)

if ! umount "${x}" &>/dev/null; then
        # Kill processes still using this mount
        /bin/fuser -k -m -9 "${x}" &>/dev/null
        sleep 2
        # Now try to unmount it again ...
        umount -f -r "${x}" &>/dev/null
fi

What is happening is the my /usr directory is a mounted partition and the rc shutdown script ends up accessing something within that mount. Therefore, the fuser command ends up killing the rc script at which point the reboot just hangs.

I over came this problem by commenting out the fuser command.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-05-12 12:39:03 UTC
Bug 133090 ?
Comment 2 SpanKY gentoo-dev 2006-05-12 22:00:02 UTC
you neglected to post `emerge info`
Comment 3 cyrus 2006-05-12 22:38:40 UTC
Portage 2.0.54-r2 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.6-r3, 2.6.15.1
 i686)
=================================================================
System uname: 2.6.15.1 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz
Gentoo Base System version 1.6.14
ccache version 2.3 [disabled]
dev-lang/python:     2.3.5, 2.4.2
dev-python/pycrypto: 2.0-r1
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
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-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mtune=pentium4 -mfpmath=sse -mmmx -msse2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share
/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kd
e/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/default
s/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -mtune=pentium4 -mfpmath=sse -mmmx -msse2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/
distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/usr/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts audiofile avi bash-completion berkdb bitmap-fon
ts bzip2 cdparanoia cdr cli crypt cups curl divx4linux dri dvd eds emboss encode
 esd exif expat fam ffmpeg foomaticdb fortran freetype freetype2 gd gdbm gif glu
t gmp gnome gpm gstreamer gtk gtk2 idn imagemagick imlib ipv6 isdnlog java jpeg 
lcms libg++ libwww mad mailwrapper mhash mikmod mmx mng motif mozilla mp3 mpeg m
ysql ncurses nls nvidia ogg oggvorbis openal opengl pam pcre pdflib perl php png
 postgres pppd python qt quicktime readline reflection sdl session sockets spell
 spl sqlite sse sse2 ssl svga tcltk tcpd tiff truetype truetype-fonts type1-font
s udev unicode vorbis xine xml2 xmms xorg xv xvid zlib userland_GNU kernel_linux
 elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS, PORTDIR_OVERLAY