aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-03-14 17:42:46 +0000
committerBill Nottingham <notting@redhat.com>2005-03-14 17:42:46 +0000
commitf7783ed33c230fc5d14d77bb8f764c80d04b10cd (patch)
treeef673f0797f3855f8c3564378ce8ff0bcb3cf369
parentf0f75da02f2f6a3da269cf119c465a25c0bc5fd1 (diff)
downloadinitscripts-f7783ed33c230fc5d14d77bb8f764c80d04b10cd.tar
initscripts-f7783ed33c230fc5d14d77bb8f764c80d04b10cd.tar.gz
initscripts-f7783ed33c230fc5d14d77bb8f764c80d04b10cd.tar.bz2
initscripts-f7783ed33c230fc5d14d77bb8f764c80d04b10cd.tar.xz
initscripts-f7783ed33c230fc5d14d77bb8f764c80d04b10cd.zip
backport fsck auto-reboot fix (#151046)
-rwxr-xr-xrc.d/rc.sysinit16
1 files changed, 14 insertions, 2 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index ef206e79..26dd0c41 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -266,9 +266,15 @@ if [ -z "$fastboot" -a "X$ROOTFSTYPE" != "Xnfs" ]; then
elif [ "$rc" = "1" ]; then
passed "$STRING"
echo
+ elif [ "$rc" -eq "2" -o "$rc" -eq "3" ]; then
+ echo $"Unmounting file systems"
+ umount -a
+ mount -n -o remount,ro /
+ echo $"Automatic reboot in progress."
+ reboot -f
fi
- # A return of 2 or higher means there were serious problems.
+ # A return of 4 or higher means there were serious problems.
if [ $rc -gt 1 ]; then
if [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --ping ; then
chvt 1
@@ -528,9 +534,15 @@ if [ -z "$fastboot" ]; then
elif [ "$rc" = "1" ]; then
passed "$STRING"
echo
+ elif [ "$rc" -eq "2" -o "$rc" -eq "3" ]; then
+ echo $"Unmounting file systems"
+ umount -a
+ mount -n -o remount,ro /
+ echo $"Automatic reboot in progress."
+ reboot -f
fi
- # A return of 2 or higher means there were serious problems.
+ # A return of 4 or higher means there were serious problems.
if [ $rc -gt 1 ]; then
if [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --ping ; then
chvt 1