kata_integration/apply-patches
holyfei 0a1d8621a8 kata-containers: sync patch from 20.03-LTS branch
reason: sync patch from 20.03-LTS branch to keep all kata components
built in kata-containers OBS project.

Signed-off-by: holyfei <yangfeiyu20102011@163.com>
2020-11-09 17:27:43 +08:00

20 lines
348 B
Bash
Executable File

#!/bin/bash
if [[ -f ./patch_flag ]];then
echo "kata_integration patched!"
exit 0
fi
tar -zxvf kata_integration-*.tar.gz
cat ./series.conf | while read line
do
if [[ $line == '' || $line =~ ^\s*# ]]; then
continue
fi
echo "====patch $line======"
pwd
patch -p1 -F1 -s < ./patches/$line
done
touch ./patch_flag