debug=y mess with /etc/init.d/rc

Bug #24095 reported by Juanje Ojeda on 2005-10-17
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
Adam Conrad

Bug Description

When you define debug as "y" seen as if the /etc/init.d/rc script takes also
this value:
# Un-comment the following for debugging.
# debug=echo

# Start script or program.
startup() {
  case "$1" in
                $debug sh "$@"
                $debug "$@"

and says:
y: command not found (or something similar)

I passed the debug var through the kernel cmdline (/proc/cmdline) (actually by
isolinux way).

I fixed for my tests putting an "unset debug" at the end of the "init" script.
Before of the "exec run-init..." of course.
I hope it help.

Jeff Bailey (jbailey) wrote :

Thanks for this report, I'll make sure it's in the next upload I do.

Adam Conrad (adconrad) wrote :

Fixed in initramfs-tools_0.40ubuntu26, just uploaded.

Changed in initramfs-tools:
status: Unconfirmed → Fix Released
Tormod Volden (tormodvolden) wrote :

Where is that /tmp/initramfs.debug file after a successful boot? If nowhere, can this be fixed by creating/copying it somewhere else than /tmp?

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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