mirror of
https://github.com/dynup/kpatch
synced 2025-01-14 09:00:46 +00:00
Merge pull request #148 from jpoimboe/kpatch-build-patch-dry-run
kpatch-build: test patch with --dry-run
This commit is contained in:
commit
96ea05ebea
@ -201,9 +201,8 @@ fi
|
||||
|
||||
echo "Testing patch file"
|
||||
cd "$SRCDIR" || die
|
||||
patch -N -p1 < "$PATCHFILE" || die "source patch file failed to apply"
|
||||
patch -N -p1 --dry-run < "$PATCHFILE" || die "source patch file failed to apply"
|
||||
cp "$PATCHFILE" "$APPLIEDPATCHFILE" || die
|
||||
patch -p1 -R < "$APPLIEDPATCHFILE" &> /dev/null || die "reverse patch apply failed"
|
||||
|
||||
echo "Building original kernel"
|
||||
make mrproper >> "$LOGFILE" 2>&1 || die
|
||||
|
Loading…
Reference in New Issue
Block a user