Commit e275d206 authored by Steve Langasek's avatar Steve Langasek
Browse files

Support reading --verbose/--debug options from /proc/cmdline, so that

we can give users a better way to debug mountall without having to
edit the upstart job.
parent cc12956a
......@@ -24,13 +24,23 @@ script
[ -f /forcefsck ] && force_fsck="--force-fsck"
[ "$FSCKFIX" = "yes" ] && fsck_fix="--fsck-fix"
# Doesn't work so well if mountall is responsible for mounting /proc, heh.
if [ -e /proc/cmdline ]; then
for arg in $(cat /proc/cmdline); do
case $arg in
-q|--quiet|-v|--verbose|--debug)
debug_arg=$arg
;;
esac
done
fi
# set $LANG so that messages appearing in plymouth are translated
if [ -r /etc/default/locale ]; then
. /etc/default/locale || true
export LANG LANGUAGE LC_MESSAGES LC_ALL
fi
exec mountall --daemon $force_fsck $fsck_fix
exec mountall --daemon $force_fsck $fsck_fix $debug_arg
end script
post-stop script
......
......@@ -10,6 +10,9 @@ mountall (2.50) UNRELEASED; urgency=low
default, logs will be captured and (assuming /var/log becomes writable
at some point) mountall is debuggable without having to spew text to the
console.
* Support reading --verbose/--debug options from /proc/cmdline, so that
we can give users a better way to debug mountall without having to
edit the upstart job.
-- Steve Langasek <vorlon@debian.org> Sun, 08 Sep 2013 23:12:35 -0700
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment