Bug 5422 - new initscripts (4.48-1) cause reboot / halt to fail
new initscripts (4.48-1) cause reboot / halt to fail
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
i386 Linux
medium Severity high
: ---
: ---
Assigned To: Bill Nottingham
Depends On:
  Show dependency treegraph
Reported: 1999-09-28 16:38 EDT by Hans de Goede
Modified: 2014-03-16 22:10 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-10-01 12:20:40 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Hans de Goede 1999-09-28 16:38:07 EDT
The new /etc/rc.d/init.d/halt contains:

remaining =`awk
'!/(^#|proc|^none|^\/dev\/root|^\/dev\/hda1)/ {print $2}'

my /proc/mount contains:

/dev/hda1 / ext2 rw 0 0
none /dev devfs rw 0 0
/proc /proc proc rw 0 0
/dev/hda5 /home ext2 rw 0 0
/dev/hda6 /archive ext2 rw 0 0
/dev/hda7 /usr/local ext2 rw 0 0
/dev/hda3 /archive/system/updates/lorax ext2 rw 0 0

as you can see root is /dev/hda1 not /dev/root, so it is
seen as a remaining filesystem to unmount.

Making things worse the halt scripts exits (after the place
where it should break) for some reason instead of retrying
 the 3 times and then continuing with rebooting. This causes
init to print:
no more processes left in runlevel.

And then it just hangs.
Comment 1 Bill Nottingham 1999-09-28 17:19:59 EDT
It exits because it killed itself, most likely.

How do you boot your system so that /proc/mounts ends up
like that?
Comment 2 Hans de Goede 1999-09-28 17:42:59 EDT
I don't know I use a default redhat install, no modifications.
Except that I run a custom kernel with devfs, but that shouldn't

Afaik I've seen the /dev/root entry in /proc/mounts with devfs too,
so I don't know why it is /dev/hda1 now. Maybe it has got something
todo with the way it is remounted?
Comment 3 Bill Nottingham 1999-09-29 10:51:59 EDT
That *shouldn't* be a problem. Could you try booting a kernel
without devfs to see if it's entered as /dev/root?
Comment 4 Hans de Goede 1999-10-01 10:43:59 EDT
Okay, it does work with the standard 2.2.12-16 kernel as distributed
with the latest lorax.

But I still think it should not behave as it does, it might yell, but
it shouldn't exit without unmounting /
Comment 5 Bill Nottingham 1999-10-01 12:20:59 EDT
This should be fixed in initscripts-4.49-1, which will be
in the next Raw Hide release.

Just trying to make sure that it did seem to be devfs, so we can
diagnose it better if it pops up again.:)

If you want to fix it on your own, change the awk to:

'!(^#|proc|^none|^\/dev\/root| \/ )/ {print $2}'
in both places...

Note You need to log in before you can comment on or make changes to this bug.