mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 10:09:07 +00:00
check-kernel-config: allow config file as an argument
This way we can run it on generated configs at kernel build time, too. Signed-off-by: Tycho Andersen <tycho@docker.com>
This commit is contained in:
parent
a5db0a22fd
commit
b97bb70cda
@ -2,10 +2,14 @@
|
||||
|
||||
set -e
|
||||
|
||||
echo "starting kernel config sanity test with /proc/config.gz"
|
||||
echo "starting kernel config sanity test with ${1:-/proc/config.gz}"
|
||||
|
||||
# decompress /proc/config.gz from the host
|
||||
UNZIPPED_CONFIG=$(zcat /proc/config.gz)
|
||||
if [ -n "$1" ]; then
|
||||
UNZIPPED_CONFIG=$(cat "$1")
|
||||
else
|
||||
# decompress /proc/config.gz from the host
|
||||
UNZIPPED_CONFIG=$(zcat /proc/config.gz)
|
||||
fi
|
||||
|
||||
kernelVersion="$(uname -r)"
|
||||
kernelMajor="${kernelVersion%%.*}"
|
||||
|
Loading…
Reference in New Issue
Block a user