kata-containers/apply-patches
holyfei cdf4bc1d8c kata-containers: upgrade kata to 2.1.0
Fix I45UXT
reason: upgrade kata to 2.1.0

Signed-off-by: holyfei <yangfeiyu20092010@163.com>
2021-08-19 11:45:39 +08:00

22 lines
370 B
Bash
Executable File

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