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

Bug #24095 reported by Juanje Ojeda
8
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
Fix Released
Medium
Adam Conrad

Bug Description

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

#
# Start script or program.
#
startup() {
  case "$1" in
        *.sh)
                $debug sh "$@"
                ;;
        *)
                $debug "$@"
                ;;
  esac
}
...
</file=rc>

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.

Revision history for this message
Jeff Bailey (jbailey) wrote :

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

Revision history for this message
Adam Conrad (adconrad) wrote :

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

Changed in initramfs-tools:
status: Unconfirmed → Fix Released
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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