Public bug reported:

     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

** Affects: casper (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: casper debug

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1532663

Title:
  no debug from sub-scripts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/casper/+bug/1532663/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to