[Bug 1532663] Re: no debug from sub-scripts
Brian Murray
brian at ubuntu.com
Wed Feb 24 16:24:07 UTC 2016
** Changed in: casper (Ubuntu)
Importance: Undecided => Medium
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to casper in Ubuntu.
https://bugs.launchpad.net/bugs/1532663
Title:
no debug from sub-scripts
Status in casper package in Ubuntu:
New
Bug description:
Kernel boot parameter "debug=1" produces detailed console / log-
file output tracing script execution. No details are provided for the
execution of sub-scripts which are run in new shells.
For instance, with "debug=1" on the kernel boot command line,
there are details of variable expansions tracing execution of "casper"
as it calls "run_scripts" to process the "casper-premount" directory,
right up to the point where it runs "/scripts/casper-premount/ORDER".
It uses the shell "source" command to run ORDER, so you see some
indication that there is a line in ORDER that says "/scripts/casper-
premount/20iso-scan", but since this line is running iso-scan as a
command, instead of running it with a "source" command, it is being
run in a new shell, and the "set -x" that "init" executed as a result
of the "debug=1" parameter is lost, so there are no debug messages
during the execution of 20iso-scan.
I realize this extends beyond casper, but I think the only safe
fix will involve adding code to every sub-script to reassert "set -x"
if the kernel was given a "debug" parameter.
Ubuntu 14.04
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/casper/+bug/1532663/+subscriptions
More information about the foundations-bugs
mailing list