Skip all forcefsck checking when stopping, #134.
This commit is contained in:
parent
1c5ec9d161
commit
d91201cb94
@ -25,6 +25,11 @@ _reboot() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_forcefsck()
|
||||||
|
{
|
||||||
|
[ -e /forcefsck ] || get_bootparam forcefsck
|
||||||
|
}
|
||||||
|
|
||||||
start()
|
start()
|
||||||
{
|
{
|
||||||
local fsck_opts= p= check_extra=
|
local fsck_opts= p= check_extra=
|
||||||
@ -33,7 +38,7 @@ start()
|
|||||||
ewarn "Skipping fsck due to /fastboot"
|
ewarn "Skipping fsck due to /fastboot"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
if [ -e /forcefsck ] || get_bootparam forcefsck; then
|
if _forcefsck; then
|
||||||
fsck_opts="${fsck_opts} -f"
|
fsck_opts="${fsck_opts} -f"
|
||||||
check_extra="(check forced)"
|
check_extra="(check forced)"
|
||||||
fi
|
fi
|
||||||
@ -92,9 +97,7 @@ stop()
|
|||||||
# Fake function so we always shutdown correctly.
|
# Fake function so we always shutdown correctly.
|
||||||
_abort() { return 0; }
|
_abort() { return 0; }
|
||||||
_reboot() { return 0; }
|
_reboot() { return 0; }
|
||||||
|
_forcefsck { return 1; }
|
||||||
# Don't check kernel params on stop.
|
|
||||||
get_bootparam() { return 1; }
|
|
||||||
|
|
||||||
yesno "${fsck_shutdown}" && start
|
yesno "${fsck_shutdown}" && start
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user