mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
rc: since 11.2 fsck_ffs will actually return ERERUN error
This commit is contained in:
parent
850760471e
commit
f0b348bca6
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Copyright (c) 2014-2018 Franco Fichtner <franco@opnsense.org>
|
||||
# Copyright (c) 2014-2019 Franco Fichtner <franco@opnsense.org>
|
||||
# Copyright (c) 2004-2010 Scott Ullrich <sullrich@gmail.com>
|
||||
# Copyright (c) 2003-2004 Manuel Kasper <mk@neon1.net>
|
||||
# All rights reserved.
|
||||
@ -99,8 +99,9 @@ done < /etc/fstab
|
||||
attempts=0
|
||||
while [ ${attempts} -lt 3 ]; do
|
||||
if [ -n "${ROOT_IS_UFS}" ]; then
|
||||
fsck -C -y /
|
||||
fsck -C -y /
|
||||
# fsck_ffs is required to be run twice
|
||||
# in order to mark the system "clean"
|
||||
fsck -C -y / || fsck -C -y /
|
||||
fi
|
||||
if mount -a; then
|
||||
# bail if all is well
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user