debug setting does not turn on tracing for scripts called by init

Bug #1853987 reported by Glenn Washburn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
New
Undecided
Unassigned

Bug Description

Version: 0.130ubuntu3.9
Severity: normal

When adding "debug" to the kernel commandline debug output is turned on and is very useful for debugging. However, none of the scripts (eg. local-premount/resume) recognize the debug variable to turn on tracing as in init. I simply added the line '[ -n "${debug}" ] && set -x' as the first line in local-premount/resume and now I get debug logging when the debug kernel parameter is added. This line should be added to all scripts, or at least the scripts run by "run_parts".

Glenn Washburn (crass)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.