Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/rc.d only fsck / if we find it in /etc/fstab. diskless ...
details: https://anonhg.NetBSD.org/src/rev/79ddfd43d48c
branches: trunk
changeset: 752126:79ddfd43d48c
user: mrg <mrg%NetBSD.org@localhost>
date: Tue Feb 16 02:46:02 2010 +0000
description:
only fsck / if we find it in /etc/fstab. diskless systems don't need
a / entry.
XXX: still get an error from "mount /" in etc/rc.d/root itself.
diffstat:
etc/rc.d/fsck_root | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diffs (31 lines):
diff -r abbd886b25f0 -r 79ddfd43d48c etc/rc.d/fsck_root
--- a/etc/rc.d/fsck_root Tue Feb 16 01:18:02 2010 +0000
+++ b/etc/rc.d/fsck_root Tue Feb 16 02:46:02 2010 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: fsck_root,v 1.3 2009/07/10 20:02:21 christos Exp $
+# $NetBSD: fsck_root,v 1.4 2010/02/16 02:46:02 mrg Exp $
#
# PROVIDE: fsck_root
@@ -38,13 +38,14 @@
return
;;
esac
+
+ echo "Starting root file system check:"
+ fsck $fsck_flags /
+ handle_fsck_error "$?"
+ return
;;
esac
- done <"${fstab_file}"
-
- echo "Starting root file system check:"
- fsck $fsck_flags /
- handle_fsck_error "$?"
+ done < "${fstab_file}"
}
load_rc_config $name
Home |
Main Index |
Thread Index |
Old Index