Page MenuHomeFreeBSD

D24087.id69570.diff
No OneTemporary

D24087.id69570.diff

Index: libexec/rc/rc.conf
===================================================================
--- libexec/rc/rc.conf
+++ libexec/rc/rc.conf
@@ -101,6 +101,7 @@
root_rw_mount="YES" # Set to NO to inhibit remounting root read-write.
root_hold_delay="30" # Time to wait for root mount hold release.
+fsck_flags="-p"
fsck_y_enable="NO" # Set to YES to do fsck -y if the initial preen fails.
fsck_y_flags="-T ffs:-R -T ufs:-R" # Additional flags for fsck -y
background_fsck="YES" # Attempt to run fsck in the background where possible.
Index: libexec/rc/rc.d/fsck
===================================================================
--- libexec/rc/rc.d/fsck
+++ libexec/rc/rc.d/fsck
@@ -25,10 +25,11 @@
trap : 3
check_startmsgs && echo "Starting file system checks:"
+ # background fsck can only (safely?) be used with preen mode
if checkyesno background_fsck; then
fsck -F -p
else
- fsck -p
+ fsck ${fsck_flags}
fi
err=$?
@@ -37,10 +38,11 @@
"available; retrying"
root_hold_wait
check_startmsgs && echo "Restarting file system checks:"
+ # background fsck can only (safely?) be used with preen mode
if checkyesno background_fsck; then
fsck -F -p
else
- fsck -p
+ fsck ${fsck_flags}
fi
err=$?
fi

File Metadata

Mime Type
text/plain
Expires
Wed, Mar 11, 12:34 PM (1 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29520738
Default Alt Text
D24087.id69570.diff (1 KB)

Event Timeline