# If requested, do not check the filesystems
[ -f /fastboot ] && exit 0
+ set -e
+ . /etc/init/functions
+
mount -n -o remount,ro / >/dev/null
if [ ${?} != 0 ]; then
log_failure_msg "Mounting root file system in read-only mode"
fsck ${options} -a -A -C -T
error_value=${?}
- if [ "${error_value}" = 0 ]; then
- log_success_msg "Checking file systems..."
- elif [ "${error_value}" = 1 ]; then
+ if [ "${error_value}" = 1 ]; then
log_warning_msg "Checking file systems..."
echo -e "${WARNING}WARNING:\n"
echo -e "${WARNING}File system errors were found and have been"