Difference between revisions of "BtrFS Progs"

From LFScript
(Added instructions to rebuild the source package from git)
(→‎Dependencies: Remove 'attr' as a dependency since it is now in LFS by default. Added 'lzo', 'asciidoc' and 'xmlto' as dependencies.)
Line 25: Line 25:
  
 
== Dependencies ==
 
== Dependencies ==
* <dependency>attr</dependency>
+
* <dependency>lzo</dependency>
 +
 
 +
The following packages are required to build the documentation. <code>asciidoc</code> requires <code>python2</code>. And <code>xmlto</code> requires about 5 more packages to deal with XML. If you want to build a light system, you may want to find a way to not build the docs. However, if you are going to build a desktop system, the XML dependencies will probably also be required for other packages.
 +
* <dependency>asciidoc</dependency>
 +
* <dependency>xmlto</dependency>
 +
 
  
 
If you want to be able to mount <code>btrfs</code> file systems, you will need to add support for it to your kernel:
 
If you want to be able to mount <code>btrfs</code> file systems, you will need to add support for it to your kernel:

Revision as of 13:42, 13 June 2014

LFScript can find this software under the name btrfs-progs.

Sources


MD5 Checksums:

1afa2d828ec80cf21aa530ae2a8caf99  btrfs-progs_2012_01_27.tar.bz2

You can build a source package from the latest version by running the following commands from within the lfscript directory:

mkdir btrfs-distrib
cd btrfs-distrib

git clone git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git
tar --xz -cf btrfs-progs_$(date +%Y%m%d).tar.xz btrfs-progs

md5sum btrfs-progs_$(date +%Y%m%d).tar.xz

mv -v btrfs-progs_$(date +%Y%m%d).tar.xz ../sources

cd ../
rm -rf btrfs-distrib

Then move the source archive to the sources directory of LFScript and edit the btrfs-progs script to point to the new source archive. Don't forget to also adjust the md5 checksum in the script.

Dependencies

  • lzo

The following packages are required to build the documentation. asciidoc requires python2. And xmlto requires about 5 more packages to deal with XML. If you want to build a light system, you may want to find a way to not build the docs. However, if you are going to build a desktop system, the XML dependencies will probably also be required for other packages.

  • asciidoc
  • xmlto


If you want to be able to mount btrfs file systems, you will need to add support for it to your kernel:

File systems --->
  Btrfs filesystem (EXPERIMENTAL) Unstable disk format

Installation

make

As the root user:

make prefix=/usr install