Commit c1c60129 authored by Tim Gardner's avatar Tim Gardner

UBUNTU: [Debian] Add aufs update script

Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
parent 0549334f
#!/bin/bash
AUFS=aufs4-standalone
#
# Before you run this be sure you've removed or reverted the 'UBUNTU: SAUCE: AUFS" patch.
#
#
# Make sure the current working directory is at the top of the
# linux tree.
#
if ! grep PATCHLEVEL Makefile
then
echo "You must run this script from the top of the linux tree"
exit 1
fi
rm -rf ${AUFS}
git clone https://github.com/sfjro/aufs4-standalone.git ${AUFS}
(cd ${AUFS}; git checkout -b aufs4.x-rcN remotes/origin/aufs4.x-rcN)
cp ${AUFS}/include/uapi/linux/aufs_type.h include/uapi/linux
rsync -av ${AUFS}/fs/ fs/
rsync -av ${AUFS}/Documentation/ Documentation/
PATCHES="${PATCHES} aufs4-kbuild.patch"
PATCHES="${PATCHES} aufs4-base.patch"
PATCHES="${PATCHES} aufs4-mmap.patch"
PATCHES="${PATCHES} aufs4-standalone.patch"
PATCHES="${PATCHES} aufs4-loopback.patch"
PATCHES="${PATCHES} vfs-ino.patch"
PATCHES="${PATCHES} tmpfs-idr.patch"
for i in ${PATCHES}
do
patch -p1 < ${AUFS}/$i
done
rm -rf ${AUFS}
git add mm/prfile.c
git add -u
find . -name "*.orig" | xargs rm
find . |grep aufs | xargs git add
git commit -s -m"UBUNTU: SAUCE: AUFS"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment