moby/apply-patches
dayshappy b823202052 [Backport]update containerd binary to v1.6.16
- Fix push error propagation
- Fix slice append error with HugepageLimits for Linux
- Update default seccomp profile for PKU and CAP_SYS_NICE
- Fix overlayfs error when upperdirlabel option is set

full diff: containerd/containerd@v1.6.15...v1.6.16

reference:https://github.com/moby/moby/commit/526ae907e2

Signed-off-by: dayshappy <zhangzhihui@xfusion.com>
2023-04-01 10:38:31 +08:00

35 lines
571 B
Bash

#!/bin/bash
# Description: This shell script is used to apply patches for the project
# Author: zhangzhihui@xfusion.com
# Create: 2023-03-27
set -ex
pkg=moby-20.10.23
cwd=$PWD
src=$cwd/$pkg
if [ ! -d patch ];then
tar -xzf patch.tar.gz
fi
cd $src
git init
git add .
git config user.name 'build'
git config user.email 'build@obs.com'
git commit -m "init build"
cd $cwd
series=$cwd/series.conf
while IPF=read -r line
do
if [[ "$line" =~ ^patch* ]];then
echo git apply $cwd/$line
cd $src && git apply $cwd/$line
fi
done < "$series"
mv $src/.git $src/git