We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb54876 commit 9fedd0dCopy full SHA for 9fedd0d
kpatch-build/kpatch-build
@@ -119,9 +119,9 @@ find_dirs() {
119
120
gcc_version_check() {
121
# ensure gcc version matches that used to build the kernel
122
- local gccver=$(gcc --version |head -n1 |cut -d' ' -f3-)
123
- local kgccver=$(readelf -p .comment $VMLINUX |grep GCC: | tr -s ' ' | cut -d ' ' -f6-)
124
- if [[ $gccver != $kgccver ]]; then
+ local gccver=$(gcc --version |head -n1 |cut -d' ' -f2-)
+ local kgccver=$(readelf -p .comment $VMLINUX |grep GCC: | tr -s ' ' | cut -d ' ' -f5-)
+ if [[ "$gccver" != "$kgccver" ]]; then
125
warn "gcc/kernel version mismatch"
126
echo "gcc version: $gccver"
127
echo "kernel version: $kgccver"
0 commit comments