Date: Tue, 9 Nov 1999 03:23:13 +0100 (CET) From: jesper@skriver.dk To: FreeBSD-gnats-submit@freebsd.org Subject: conf/14791: fsck unattended at bootup Message-ID: <19991109022313.9B5E43E31@freesbee.wheel.dk>
index | next in thread | raw e-mail
>Number: 14791
>Category: conf
>Synopsis: Optionally change the behaviour of fsck upon bootup.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Nov 8 19:20:00 PST 1999
>Closed-Date:
>Last-Modified:
>Originator: Jesper Skriver
>Release: FreeBSD 4.0-CURRENT i386
>Organization:
Tele Danmark
>Environment:
Any box running FreeBSD at a remote site.
>Description:
At a remote site, where there is no one to operate the box, there is no
reason to drop into single user mode, to do a manual fsck, better hope for the
best and do a 'fsck -y'
>How-To-Repeat:
NA
>Fix:
Proposed change/addition to /etc/rc and /etc/defaults/rc.conf (diff relative to -CURRENT as of Nov 8th 1999)
--- /etc/rc.orig Tue Nov 9 03:00:10 1999
+++ /etc/rc Tue Nov 9 02:57:46 1999
@@ -58,7 +58,17 @@
case $1 in
autoboot)
- echo Automatic reboot in progress...
+ case ${fsck_unattended} in
+ [Yy][Ee][Ss])
+ echo Automatic reboot in progress... (unattended)
+ fsck -p || fsck -y
+ ;;
+ [Nn][Oo])
+ echo Automatic reboot in progress...
+ fsck -p
+ ;;
+ esac
+
fsck -p
case $? in
0)
--- /etc/defaults/rc.conf.orig Tue Nov 9 02:59:52 1999
+++ /etc/defaults/rc.conf Tue Nov 9 03:12:06 1999
@@ -225,6 +225,10 @@
kern_securelevel="-1" # range: -1..3 ; `-1' is the most insecure
update_motd="YES" # update version info in /etc/motd (or NO)
start_vinum="" # set to YES to start vinum
+fsck_unattended="NO" # If set to YES, /etc/rc will do a 'fsck -p || fsck -y'
+ # instead of the normal 'fsck -p'
+ # NOTE: This can be dangerous, don't do it unless you know
+ # what you are doing !!
##############################################################
### Allow local configuration override at the very end here ##
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991109022313.9B5E43E31>
