summaryrefslogtreecommitdiff
path: root/update-source.sh
blob: 3fa1e7bb457dc2c1e61ef97ce5e2ba274dc83796 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
set -xe

#BRANCH=aufs6.6
BRANCH=aufs6.x-rcN

# aufs6
[ -d aufs-standalone ] || git clone https://github.com/sfjro/aufs-standalone.git
cd aufs-standalone
git checkout -b ${BRANCH} origin/${BRANCH} || git switch ${BRANCH}
git pull
cat aufs6-kbuild.patch aufs6-base.patch aufs6-mmap.patch aufs6-standalone.patch > ../kernel-aufs.patch
rm -rf linux && mkdir linux
cp -a Documentation fs include linux
diff -urN /usr/share/empty linux | filterdiff -x linux/include/uapi/linux/Kbuild >> ../kernel-aufs.patch
cat aufs6-loopback.patch >> ../kernel-aufs.patch

# other