95rootfs-block: skip checks rel. to fsck if rd.skipfsck is supplied
parent
9fb01d49d6
commit
965c2d8760
|
|
@ -54,10 +54,12 @@ mount_root() {
|
|||
fsckoptions=$(cat "$NEWROOT"/fsckoptions)
|
||||
fi
|
||||
|
||||
if ! getargbool 0 rd.skipfsck; then
|
||||
if [ -f "$NEWROOT"/forcefsck ] || getargbool 0 forcefsck ; then
|
||||
fsckoptions="-f $fsckoptions"
|
||||
elif [ -f "$NEWROOT"/.autofsck ]; then
|
||||
[ -f "$NEWROOT"/etc/sysconfig/autofsck ] && . "$NEWROOT"/etc/sysconfig/autofsck
|
||||
[ -f "$NEWROOT"/etc/sysconfig/autofsck ] && \
|
||||
. "$NEWROOT"/etc/sysconfig/autofsck
|
||||
if [ "$AUTOFSCK_DEF_CHECK" = "yes" ]; then
|
||||
AUTOFSCK_OPT="$AUTOFSCK_OPT -f"
|
||||
fi
|
||||
|
|
@ -69,6 +71,7 @@ mount_root() {
|
|||
fi
|
||||
fsckoptions="$AUTOFSCK_OPT $fsckoptions"
|
||||
fi
|
||||
fi
|
||||
|
||||
rootopts=
|
||||
if getargbool 1 rd.fstab -n rd_NO_FSTAB \
|
||||
|
|
|
|||
Loading…
Reference in New Issue