First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 156766
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Sebastian Bergmann (RETIRED) <sebastian@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
x Attempt to fix the issue patch Roy Marples (RETIRED) 2006-12-14 07:28 0000 447 bytes Details | Diff
x Another attempt patch Roy Marples (RETIRED) 2006-12-14 08:14 0000 444 bytes Details | Diff
x This should work patch Roy Marples (RETIRED) 2006-12-14 10:54 0000 692 bytes Details | Diff
x Work without error? patch Roy Marples (RETIRED) 2006-12-14 11:20 0000 860 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 156766 depends on: Show dependency tree
Show dependency graph
Bug 156766 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-12-01 00:52 0000
When I reboot or shutdown my notebook, the shutdown process stops with

  * Unmounting filesystems ... [ok]
  INIT: no more processes in this runlevel

Unfortunately, this happens before the filesystems are properly unmounted so
the ReiserFS journal needs to be played back during the next boot.

-- 

Portage 2.1.2_rc2-r3 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0,
2.6.18-gentoo-r3 i686)
=================================================================
System uname: 2.6.18-gentoo-r3 i686 Genuine Intel(R) CPU           L2400  @
1.66GHz
Gentoo Base System version 1.13.0_alpha7
Last Sync: Fri, 01 Dec 2006 06:00:01 +0000
ccache version 2.4 [disabled]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -msse3 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=pentium-m -msse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig cvs distlocks fixpackages metadata-transfer
parallel-fetch sandbox sfperms sign strict"
GENTOO_MIRRORS="http://mirror.gentoo.no/ ftp://ftp.du.se/pub/os/gentoo
ftp://trumpetti.atm.tut.fi/gentoo/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
http://gentoo.oregonstate.edu"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="  "
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acpi alsa asf berkdb bitmap-fonts bluetooth browserplugin
bzip2 cairo cli cracklib crypt cups dbus dga divx4linux dlloader dri dvd
dvdread eds elibc_glibc exif fame firefox flac foomaticdb fortran gaim gdbm gif
glitz gnome gpm graphviz gstreamer gtk hal iconv input_devices_evdev
input_devices_keyboard input_devices_mouse iproute2 ipv6 isdnlog java jpeg
kdeenablefinal kdehiddenvisibility kernel_linux libg++ libnotify libsexy lzo
mad matroska mjpeg mmx mmxext mng moznocompose moznoirc moznomail mozsvg mp3
mpeg ncurses nls nomotif nptl nptlonly nsplugin ogg oggvorbis opengl pam
pam_console pcre pdf perl png ppds pppd python quicktime readline reflection
samba session smp spl sse sse2 ssl startup-notification svg tcpd tetex theora
tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU
video_cards_i810 vim-syntax vorbis win32codecs wmf xcb xml xml2 xorg xv xvid
xvmc zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #1 From Roy Marples (RETIRED) 2006-12-08 14:59:44 0000 -------
Fixed in baselayout-1.13.0_alpha8

------- Comment #2 From Roy Marples (RETIRED) 2006-12-13 11:31:13 0000 -------
*** Bug 158052 has been marked as a duplicate of this bug. ***

------- Comment #3 From Jakub Moc (RETIRED) 2006-12-14 05:58:28 0000 -------
*** Bug 158128 has been marked as a duplicate of this bug. ***

------- Comment #4 From Jon 2006-12-14 06:55:39 0000 -------
(In reply to comment #1)
> Fixed in baselayout-1.13.0_alpha8
> 

Okay, if this issue is fixed, then can we have this backported to the stable
version 1.12.7 since the bug reports for that version of baselayout have been
marked as a duplicate for an ALPHA version of baselayout? I do not wish to
install an ALPHA version of baselayout on my PC, so a backport of this fix
would be very helpful. Check out the other bug reports that were so kindly
marked as a dupe for more information. ;)

Sorry I am kind of in a pissy mood because a bug report should not be marked as
a duplicate of an alpha version and the alpha version gets the fixed rather
than the friggin STABLE version. If anything, the Alpha version bug report
should be a duplicate of a stable versions bug report and then Stable version
fixed first and then the fix migrating up to the alpha version.

I just hope you can get this resolved for the stable version and in the
meantime, I think one of the other bug reports should be unlisted as a dupe and
reopened by someone that can so then the bug will be listed for the STABLE
version and hopefully fixed.

Thanks.

------- Comment #5 From Roy Marples (RETIRED) 2006-12-14 07:16:52 0000 -------
(In reply to comment #4)
> (In reply to comment #1)
> > Fixed in baselayout-1.13.0_alpha8
> Okay, if this issue is fixed, then can we have this backported to the stable
> version 1.12.7 since the bug reports for that version of baselayout have been
> marked as a duplicate for an ALPHA version of baselayout?

Sadly no - the changes are way to big.
Just to make you happy I'll re-open the bug.

------- Comment #6 From Roy Marples (RETIRED) 2006-12-14 07:28:25 0000 -------
Created an attachment (id=104045) [edit]
Attempt to fix the issue

In the meantime, try this patch

------- Comment #7 From Martin Kramer 2006-12-14 07:49:53 0000 -------
Hallo Leute wie gehts?(In reply to comment #6)
> Created an attachment (id=104045) [edit]
> Attempt to fix the issue
> 
> In the meantime, try this patch
> 

Tried the patch. Didn't help. Same message as before:

INIT: no more processes in this runlevel

+ Freeze
+ fsck on manual reboot

------- Comment #8 From Roy Marples (RETIRED) 2006-12-14 08:14:17 0000 -------
Created an attachment (id=104047) [edit]
Another attempt

Try this one

------- Comment #9 From Roy Marples (RETIRED) 2006-12-14 08:14:54 0000 -------
*** Bug 158026 has been marked as a duplicate of this bug. ***

------- Comment #10 From Martin Kramer 2006-12-14 08:29:07 0000 -------
(In reply to comment #8)
> Created an attachment (id=104047) [edit]
> Another attempt
> 
> Try this one
> 

Nope. Not working.

I already thought of this because fuser -m -c is giving an error msg (and even
tried it myself).

------- Comment #11 From Roy Marples (RETIRED) 2006-12-14 08:36:22 0000 -------
OK, you want to put this in

echo "unmounting ${x}"

just before the line

if ! umount "${x}" &>/dev/null; then

So we can see what it's trying to unmount.

------- Comment #12 From Martin Kramer 2006-12-14 09:06:15 0000 -------
(In reply to comment #11)
> OK, you want to put this in
> 
> echo "unmounting ${x}"
> 
> just before the line
> 
> if ! umount "${x}" &>/dev/null; then
> 
> So we can see what it's trying to unmount.
> 

OK I get:

    unmounting /var
    unmounting /usr
    unmounting /share
    unmounting /opt
    unmounting /home
    unmounting /boot
    * Remounting remaining filesystems readonly... [OK]
    INIT: no more processes left in this runlevel

I did a few more investigations. 
It seems like halt.sh kills itself while trying to unmount "/". Seems like it
has problems with realizing it is the only process (or one of he only
processes) left using "/"

------- Comment #13 From Martin Kramer 2006-12-14 09:15:44 0000 -------
(In reply to comment #12)
> I did a few more investigations. 
> It seems like halt.sh kills itself while trying to unmount "/". Seems like it
> has problems with realizing it is the only process (or one of he only
> processes) left using "/"
> 

What's interesting is, that if I do a test run with a little script running
from a partition, only the script itself uses, it can detect that it's using
the partition. Can it be that, halt.sh isn't able to determine it's PID on
shutdown?

------- Comment #14 From Roy Marples (RETIRED) 2006-12-14 09:18:25 0000 -------
I wish I could replicate this :/

OK, see if it gets to the last line in halt.sh

echo "going to load /etc/init.d/$1"
just before
[[ -e /etc/init.d/"$1".sh ]] && source /etc/init.d/"$1".sh

------- Comment #15 From Martin Kramer 2006-12-14 09:25:55 0000 -------
(In reply to comment #14)
> I wish I could replicate this :/
> 
> OK, see if it gets to the last line in halt.sh
> 
> echo "going to load /etc/init.d/$1"
> just before
> [[ -e /etc/init.d/"$1".sh ]] && source /etc/init.d/"$1".sh
> 

OK. Seems like he gets to the last line...

On reboot the system displays "going to load /etc/init.d/reboot" just before
the INIT: no more blah stuff.

And that may be the problem. Apperently there is no /etc/init.d/reboot. At
least on my system...

------- Comment #16 From Martin Kramer 2006-12-14 09:50:34 0000 -------
(In reply to comment #15)
> (In reply to comment #14)
> > I wish I could replicate this :/
> > 
> > OK, see if it gets to the last line in halt.sh
> > 
> > echo "going to load /etc/init.d/$1"
> > just before
> > [[ -e /etc/init.d/"$1".sh ]] && source /etc/init.d/"$1".sh
> > 
> 
> OK. Seems like he gets to the last line...
> 
> On reboot the system displays "going to load /etc/init.d/reboot" just before
> the INIT: no more blah stuff.
> 
> And that may be the problem. Apperently there is no /etc/init.d/reboot. At
> least on my system...
> 

Just checked it again baselayout-1.12.6 had a reboot.sh in /etc/init.d
baselayout-1.12.7 is missing it.
Could it be the update got it deleted?

------- Comment #17 From Roy Marples (RETIRED) 2006-12-14 09:57:04 0000 -------
It's /etc/init.d/reboot.sh, which is now provided by sysvinit

That's a very simple file - check that we have enought to reboot

ls /dev/initctl
ls /sbin/reboot

------- Comment #18 From Roy Marples (RETIRED) 2006-12-14 09:59:43 0000 -------
What version of sysvinit do you have installed?

------- Comment #19 From Martin Kramer 2006-12-14 10:09:33 0000 -------
(In reply to comment #17)
> It's /etc/init.d/reboot.sh, which is now provided by sysvinit
> 
> That's a very simple file - check that we have enought to reboot
> 
> ls /dev/initctl
> ls /sbin/reboot
> 

Yes they exist both. And halt.sh just calls /etc/init.d/reboot.sh when it
exists. But the problem is, that "/" isn't unmounted on shutdown and then
apperently halt.sh dies/getskicked/eixts and INIT stands there with nothing
left to do (while it should call reboot I guess).

------- Comment #20 From Martin Kramer 2006-12-14 10:10:15 0000 -------
(In reply to comment #18)
> What version of sysvinit do you have installed?
> 

sys-apps/sysvinit-2.86-r6

------- Comment #21 From Martin Kramer 2006-12-14 10:53:27 0000 -------
(In reply to comment #20)
> (In reply to comment #18)
> > What version of sysvinit do you have installed?
> > 
> 
> sys-apps/sysvinit-2.86-r6
> 

OK I remerged sysvinit and now have a reboot.sh again and the system reboots
normally. Could it be that the emerge of baselayout-1.12.7-r3 deleted the
reboot.sh file?

Anyways. The not rebooting problem is gone, but the rootfs not cleanly
unmounted problem stays.

------- Comment #22 From Roy Marples (RETIRED) 2006-12-14 10:54:12 0000 -------
Created an attachment (id=104054) [edit]
This should work

OK, I think I have this solved now, try this patch.

------- Comment #23 From Martin Kramer 2006-12-14 11:10:51 0000 -------
(In reply to comment #22)
> Created an attachment (id=104054) [edit]
> This should work
> 
> OK, I think I have this solved now, try this patch.
> 

It works!
I get some output about /dev being busy (couldn't read exactly what it was
because it was gone too fast), but the reboot worked and the file system was
clean too.

Thank you very much!

------- Comment #24 From Roy Marples (RETIRED) 2006-12-14 11:20:06 0000 -------
Created an attachment (id=104055) [edit]
Work without error?

OK, this should clear the error up, and hopefully work.
If so I'll commit it right away :)

------- Comment #25 From Wonkey Donkey 2006-12-14 11:26:17 0000 -------
(In reply to comment #24)
> Created an attachment (id=104055) [edit]
> Work without error?
> 
> OK, this should clear the error up, and hopefully work.
> If so I'll commit it right away :)
> 

Would I be right in assuming this will be committed to 'baselayout' or some
other package ?

------- Comment #26 From Martin Kramer 2006-12-14 11:31:51 0000 -------
(In reply to comment #24)
> Created an attachment (id=104055) [edit]
> Work without error?
> 
> OK, this should clear the error up, and hopefully work.
> If so I'll commit it right away :)
> 

Error msg gone.
rootfs clean
Reboot without problem.

And for the INIT: no more processes left in this runlevel thing a remerge of
sysvinit will do the trick.

Again Thank you very much for your effort! :-)

------- Comment #27 From Martin Kramer 2006-12-14 11:32:51 0000 -------
(In reply to comment #25)
> (In reply to comment #24)
> > Created an attachment (id=104055) [edit]
> > Work without error?
> > 
> > OK, this should clear the error up, and hopefully work.
> > If so I'll commit it right away :)
> > 
> 
> Would I be right in assuming this will be committed to 'baselayout' or some
> other package ?
> 

Well since halt.sh is in baselayout it will be baselayout-1.12.7-r4 I guess.

------- Comment #28 From Roy Marples (RETIRED) 2006-12-14 11:40:18 0000 -------
Fixed, thanks for helping test the issue guys :)

------- Comment #29 From Robert Golding 2006-12-19 08:21:22 0000 -------
(In reply to comment #28)
> Fixed, thanks for helping test the issue guys :)
> 

When I tried baselayout-1.12.7-r4 yesterday I still needed to emerge
sysvinit-2.86-r6 (~x86) to restore shutdown.sh and reboot.sh, yet if I reverted
to baselayout-1.12.6 (stable) they were dropped and reinstated without
remerging sysvinit.

RESOLVED, yes, but does this make it FIXED, not so sure about that :-)

First Last Prev Next    No search results available      Search page      Enter new bug