Skip to content

Commit 473c235

Browse files
authored
Merge pull request #1436 from tlaurion/kexec_cosmetic_fixes
Kexec cosmetic fixes
2 parents 3747d58 + a324724 commit 473c235

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

initrd/bin/kexec-boot

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,17 @@ echo "$kexeccmd"
146146
eval "$kexeccmd" \
147147
|| die "Failed to load the new kernel"
148148

149+
if [ "$CONFIG_DEBUG_OUTPUT" = "y" ];then
150+
#Repeat kexec command that will be executed since in debug
151+
DEBUG "kexeccmd= $kexeccmd"
152+
153+
read -n 1 -p "[DEBUG] Continue booting? [Y/n]: " debug_boot_confirm
154+
if [ "${debug_boot_confirm^^}" = N ]; then
155+
# abort
156+
die "Boot aborted"
157+
fi
158+
fi
159+
149160
if [ "$CONFIG_TPM" = "y" ]; then
150161
tpmr kexec_finalize
151162
fi

initrd/bin/kexec-insert-key

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ if [ "$unseal_failed" = "y" ]; then
6868
fi
6969
fi
7070

71+
echo
7172
echo '+++ Building initrd'
7273
# pad the initramfs (dracut doesn't pad the last gz blob)
7374
# without this the kernel init/initramfs.c fails to read

patches/kexec-2.0.26.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ index 14263b0..55291d6 100644
8383
+ dbgprintf("%s: Reusing video type %d\n",
8484
+ __func__, real_mode->orig_video_isVGA);
8585
} else {
86-
+ dbgprintf("%s: Unknown driver %s, can't provide framebuffer\n",
87-
+ __func__, fix.id);
86+
+ fprintf(stderr, "Unknown driver %s, can't provide framebuffer\n kexec'ed OS will take over console only if %s is provided\n",
87+
+ fix.id, fix.id);
8888
real_mode->orig_video_isVGA = 0;
8989
close(fd);
9090
return 0;
@@ -95,7 +95,7 @@ index 14263b0..55291d6 100644
9595
+ dbgprintf("%s: Kernel did not provide framebuffer address\n",
9696
+ __func__);
9797
+ dbgprintf("%s: Try enabling CONFIG_DRM_FBDEV_LEAK_PHYS_SMEM and "
98-
+ "drm_kms_helper.drm_leak_fbdev_smem\n",
98+
+ "drm_kms_helper.drm_leak_fbdev_smem in kernel command-line options\n",
9999
+ __func__);
100100
+ }
101101
+

0 commit comments

Comments
 (0)