Skip to content

Commit 7cf99a5

Browse files
committed
kexec-boot: add debugging information on around kexec call when in debug mode.
1 parent 458cf87 commit 7cf99a5

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

initrd/bin/kexec-boot

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ adjust_cmd_line() {
6161
adjusted_cmd_line="y"
6262
}
6363

64+
if [ "$CONFIG_DEBUG_OUTPUT" = "y" ];then
65+
kexeccmd="$kexeccmd -d"
66+
fi
67+
6468
module_number="1"
6569
while read line
6670
do
@@ -139,4 +143,8 @@ if [ "$CONFIG_TPM" = "y" ]; then
139143
fi
140144

141145
echo "Starting the new kernel"
146+
if [ "$CONFIG_DEBUG_OUTPUT" = "y" ];then
147+
DEBUG "kexeccmd= $kexeccmd"
148+
DO_WITH_DEBUG exec kexec -d -e
149+
fi
142150
exec kexec -e

0 commit comments

Comments
 (0)