Merge pull request #873 from jpoimboe/detect-truncated-Module.symvers

kpatch-build: detect truncated Module.symvers
This commit is contained in:
Joe Lawrence 2018-06-04 16:07:42 -04:00 committed by GitHub
commit a8133b1dc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -726,6 +726,8 @@ if [[ ! -e "$TEMPDIR/changed_objs" ]]; then
die "no changed objects found"
fi
grep -q vmlinux "$SRCDIR/Module.symvers" || die "truncated $SRCDIR/Module.symvers file"
# Read as words, no quotes.
# shellcheck disable=SC2013
for i in $(cat "$TEMPDIR/changed_objs")