2010-10-25 23:38:28 +08:00
|
|
|
#!/bin/sh
|
|
|
|
#AUFS2VERSION=""
|
|
|
|
#KERNELVERSION=2.6.35
|
2011-08-17 07:04:18 +08:00
|
|
|
GITSNAPSHOT=20110817
|
2010-10-25 23:38:28 +08:00
|
|
|
# aufs2 (no -xx) for the latest -rc version.
|
2011-08-17 07:04:18 +08:00
|
|
|
rm -R aufs-util.git
|
|
|
|
git clone git://aufs.git.sourceforge.net/gitroot/aufs/aufs-util.git
|
|
|
|
cd aufs-util
|
2010-10-25 23:38:28 +08:00
|
|
|
#git checkout origin/aufs2${AUFS2VERSION}
|
2011-08-17 07:08:53 +08:00
|
|
|
git checkout origin/aufs2.2
|
2010-10-25 23:38:28 +08:00
|
|
|
#*** apply "aufs2-base.patch" and "aufs2-standalone.patch" to your kernel source files.
|
|
|
|
cd ..
|
2011-08-17 07:08:53 +08:00
|
|
|
rm -rf aufs2-util-${GITSNAPSHOT}
|
|
|
|
cp -a aufs-util aufs2-util-${GITSNAPSHOT}
|
|
|
|
tar -czf aufs2-util-${GITSNAPSHOT}.tar.gz --exclude=.git aufs2-util-${GITSNAPSHOT}
|