summaryrefslogtreecommitdiffstats
path: root/aufs.xml
blob: eb98978081a130d0f6301a529d76078e94135a0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version='1.0' encoding='ISO-8859-1'?>
<!-- This document was created with Syntext Serna Free. --><!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY aufs "unionfs"> 
<!ENTITY aufs-download-http "http://aufs.git.sourceforge.net/git/gitweb-index.cgi">
]>
<sect1 id="aufs" xreflabel="aufs">
<?dbhtml filename="aufs.html"?>  <title>aufs</title>
  <note><para>This chapter is mandatory for building the livecd. The livekey doesn't need it as we will show later</para></note>
  <para/>
  <sect2 role="package">
    <title>Introduction to aufs</title>
    <para>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. </para>
    <para>Versioning of AUFS is parallel to the kernel version. For kernel 2.x you&apos;ll need AUFS2 and for the new kernel 3.x you&apos;ll need AUFS3.</para>
    <para>As stated in the previous chapter, we need to checkout AUFS from GIT.</para>
  </sect2>
  <sect2>
    <title>Checking out AUFS</title>
    <para>Assuming we are using kernel 3.0.4:</para>
    <screen><userinput>git clone git://aufs.git.sourceforge.net/gitroot/aufs/aufs3-standalone.git aufs3-standalone.git
cd aufs3-standalone.git
git checkout origin/aufs3.0</userinput></screen>
<para></para>
  </sect2>
  <sect2>  
    <title>Copying the sources</title>
        <screen><userinput>cp -r fs &lt;location of kernel source&gt;
cp -r include &lt;location of kernel source&gt;
cp config.mk &lt;location of kernel source&gt;</userinput></screen>
<para></para>
  </sect2>
  <sect2>  
    <title>Patching the kernel</title>
    <para>Now, cd to your kernel source top level directory and run the following command:</para>
    <screen><userinput>patch -Np1 -i &lt;location of patch&gt;/aufs3-base.patch 
patch -Np1 -i &lt;location of patch&gt;/aufs3-kbuild.patch
patch -Np1 -i &lt;location of patch&gt;/aufs3-standalone.patch</userinput></screen>
    <para></para>
  </sect2>
</sect1>