|author||Tails developers <firstname.lastname@example.org>||2011-10-19 19:17:21 +0200|
|committer||Tails developers <email@example.com>||2011-10-19 19:45:28 +0200|
Make kexec find out what kernel was booted, and load this one.
We'll soon ship several kernels for PAE / NX bit support: 486, 686-pae, amd64. Therefore, if the system was booted on a 64-bit kernel, plenty of memory may have been used, that need to be wiped on shutdown; in such a situation, the memory wipe kexec'd kernel must be 64-bit too: a 32-bit kernel may be unable to access all memory that may have been used during the runtime of Tails.
1 files changed, 13 insertions, 2 deletions
diff --git a/config/chroot_local-includes/etc/default/kexec b/config/chroot_local-includes/etc/default/kexec
index 02fc4c0..13cab1b 100644
@@ -5,8 +5,19 @@
# Kernel and initrd image
+for arg in $(cat /proc/cmdline) ; do
+ case "$arg" in
# If empty, use current /proc/cmdline