From 7df987a652b93d55dd8eca363706d3bacc469b55 Mon Sep 17 00:00:00 2001 From: William Harrington Date: Thu, 27 Nov 2014 16:29:31 -0600 Subject: Initial commit message for lfs live howto. --- book/aufs.html | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 book/aufs.html (limited to 'book/aufs.html') diff --git a/book/aufs.html b/book/aufs.html new file mode 100644 index 0000000..97dea86 --- /dev/null +++ b/book/aufs.html @@ -0,0 +1,8 @@ + +2.3. aufs

2.3. aufs

[Note]

Note

This chapter is mandatory for building the livecd. The livekey doesn't need it as we will show later

2.3.1. Introduction to aufs

AUFS (Another Union File System) is as the name states, an union filesystem service. It allows files and directories of separate file systems, known as branches, to be transparently overlaid, forming a single coherent file system. Contents of directories which have the same path within the merged branches will be seen together in a single merged directory, within the new, virtual filesystem.

Versioning of AUFS is parallel to the kernel version. For kernel 2.x you'll need AUFS2 and for the new kernel 3.x you'll need AUFS3.

As stated in the previous chapter, we need to checkout AUFS from GIT.

2.3.2. Checking out AUFS

Assuming we are using kernel 3.0.4:

git clone git://aufs.git.sourceforge.net/gitroot/aufs/aufs3-standalone.git aufs3-standalone.git
+cd aufs3-standalone.git
+git checkout origin/aufs3.0

2.3.3. Copying the sources

cp -r fs <location of kernel source>
+cp -r include <location of kernel source>
+cp config.mk <location of kernel source>

2.3.4. Patching the kernel

Now, cd to your kernel source top level directory and run the following command:

patch -Np1 -i <location of patch>/aufs3-base.patch 
+patch -Np1 -i <location of patch>/aufs3-kbuild.patch
+patch -Np1 -i <location of patch>/aufs3-standalone.patch

-- cgit v1.2.3-54-g00ecf