From e22a4e2a0aa87f2bc2f35a79424660655689a97a Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Thu, 13 Jan 2022 11:15:39 +0000 Subject: [PATCH] packaging: Make kernel config accessible to guest Provide the `/proc/config.gz` file in guest kernels that allow the guest to determine the kernel configuration used to build the running kernel. Note that since `gunzip` expects to rename the gzip'ed file it operates on, to use this feature you need to run something like the following in the container environment: ```bash # cat /proc/config.gz|gunzip -c ``` Fixes: #3445. Signed-off-by: James O. D. Hunt --- tools/packaging/kernel/configs/fragments/common/debug.conf | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tools/packaging/kernel/configs/fragments/common/debug.conf diff --git a/tools/packaging/kernel/configs/fragments/common/debug.conf b/tools/packaging/kernel/configs/fragments/common/debug.conf new file mode 100644 index 0000000000..c8c5e5b127 --- /dev/null +++ b/tools/packaging/kernel/configs/fragments/common/debug.conf @@ -0,0 +1,6 @@ +# Debug related settings + +# Enable /proc/config.gz to allow the guest to query the kernel +# configuration used for the running kernel. +CONFIG_IKCONFIG=y +CONFIG_IKCONFIG_PROC=y