summaryrefslogtreecommitdiffstats
path: root/book/aufs.html
diff options
context:
space:
mode:
Diffstat (limited to 'book/aufs.html')
-rw-r--r--book/aufs.html8
1 files changed, 8 insertions, 0 deletions
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 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /><title>2.3. aufs</title><link rel="stylesheet" href="stylesheets/lfs.css" type="text/css" /><meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /><link rel="stylesheet" href="stylesheets/lfs-print.css" type="text/css" media="print" /></head><body class="lfs" id="lfs-0.3"><div class="navheader"><h4>LFS live howto - Version 0.3</h4><h3>Chapter 2. packages</h3><ul><li class="prev"><a accesskey="p" href="git.html" title="GIT">Prev</a><p>GIT</p></li><li class="next"><a accesskey="n" href="busybox.html" title="busybox 1.19.2">Next</a><p>busybox 1.19.2</p></li><li class="up"><a accesskey="u" href="ch02.html" title="Chapter 2. packages">Up</a></li><li class="home"><a accesskey="h" href="index.html" title="LFS live howto - Version 0.3">Home</a></li></ul></div><div class="sect1" lang="en" xml:lang="en"><h1 class="sect1"><a id="aufs" name="aufs"></a>2.3. aufs</h1><div class="admon note"><img alt="[Note]" src="images/note.png" /><h3>Note</h3><p>This chapter is mandatory for building the livecd. The livekey doesn't need it as we will show later</p></div><p></p><div class="package" lang="en" xml:lang="en"><h2 class="sect2">2.3.1. Introduction to aufs</h2><p>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. </p><p>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.</p><p>As stated in the previous chapter, we need to checkout AUFS from GIT.</p></div><div class="sect2" lang="en" xml:lang="en"><h2 class="sect2">2.3.2. Checking out AUFS</h2><p>Assuming we are using kernel 3.0.4:</p><pre class="userinput"><kbd class="command">git clone git://aufs.git.sourceforge.net/gitroot/aufs/aufs3-standalone.git aufs3-standalone.git
+cd aufs3-standalone.git
+git checkout origin/aufs3.0</kbd></pre><p></p></div><div class="sect2" lang="en" xml:lang="en"><h2 class="sect2">2.3.3. Copying the sources</h2><pre class="userinput"><kbd class="command">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;</kbd></pre><p></p></div><div class="sect2" lang="en" xml:lang="en"><h2 class="sect2">2.3.4. Patching the kernel</h2><p>Now, cd to your kernel source top level directory and run the following command:</p><pre class="userinput"><kbd class="command">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</kbd></pre><p></p></div></div><div class="navfooter"><ul><li class="prev"><a accesskey="p" href="git.html" title="GIT">Prev</a><p>GIT</p></li><li class="next"><a accesskey="n" href="busybox.html" title="busybox 1.19.2">Next</a><p>busybox 1.19.2</p></li><li class="up"><a accesskey="u" href="ch02.html" title="Chapter 2. packages">Up</a></li><li class="home"><a accesskey="h" href="index.html" title="LFS live howto - Version 0.3">Home</a></li></ul></div></body></html>