rc: since 11.2 fsck_ffs will actually return ERERUN error

This commit is contained in:
Franco Fichtner 2019-11-11 07:28:24 +01:00
parent 850760471e
commit f0b348bca6

View File

@ -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