#944779 initramfs-tools-core: debug setting does not turn on tracing for scripts called by init #944779
- Package:
- initramfs-tools-core
- Source:
- initramfs-tools
- Submitter:
- Glenn Washburn
- Date:
- 2025-11-16 23:21:02 UTC
- Severity:
- wishlist
- Tags:
Dear Maintainer,
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
Control: tag -1 wontfix I think this would be a surprising interpretation of the "debug" kernel parameter, and it could leak sensitive information to the screen. So I won't be making this change. Ben.