Bug 117641
Summary: | Should reboot when a root FS fsck succeeds, but says "Reboot Linux". | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Aleksey Nogin <aleksey> |
Component: | initscripts | Assignee: | Bill Nottingham <notting> |
Status: | CLOSED RAWHIDE | QA Contact: | Brock Organ <borgan> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | CC: | hauan, khalasa, mmclagan, rvokal |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 7.91-1 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-10-17 04:57:06 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Aleksey Nogin
2004-03-06 02:18:25 UTC
What's the return code of e2fsck in this case? Here is what the man page says: EXIT CODE The exit code returned by e2fsck is the sum of the following conditions: 0 - No errors 1 - File system errors corrected 2 - File system errors corrected, system should be rebooted 4 - File system errors left uncorrected 8 - Operational error 16 - Usage or syntax error 32 - E2fsck canceled by user request 128 - Shared library error *** Bug 127347 has been marked as a duplicate of this bug. *** *** Bug 128117 has been marked as a duplicate of this bug. *** At line 297 of rc.sysinit from initscripts-7.55 change to: elif [ "$rc" = "1" ]; then passed "$STRING" echo elif [ "$rc" = "2" -o "$rc" = "3" ]; then passed "$STRING" echo $"Unmounting file systems" umount -a mount -n -o remount,ro / echo $"Automatic reboot in progress." reboot -f elif [ $rc -gt 3 ]; then if [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --ping ; then chvt 1 fi Also add the above at line 577 of the modified file. This reboots in the appropriate cases. *** Bug 132346 has been marked as a duplicate of this bug. *** Fixed in 7.91-1. |