Differences between revisions 1 and 2
Revision 1 as of 2012-12-10 15:41:02
Size: 1256
Comment:
Revision 2 as of 2012-12-10 15:43:05
Size: 1292
Comment:
Deletions are marked like this. Additions are marked like this.
Line 16: Line 16:
Install build tools and required deps Install build tools and required deps:
{{{
Line 18: Line 19:
}}}
Line 19: Line 21:
#build the zfs-linux packages build the zfs-linux packages
{{{
Line 21: Line 24:
}}}
build the spl-linux packages
{{{
apt-get source -b spl-linux
}}}
Line 22: Line 30:
#build the spl-linux packages
apt-get source -b spl-linux

#install the resulting stuff
install the resulting stuff
{{{
Line 27: Line 33:
}}}

You can easily build a package from an Ubuntu PPA, using the following procedure. The Zfs on Linux PPA is used as an example: https://launchpad.net/~zfs-native/+archive/stable Install the Debian SDK:

apt-get install devscripts build-essential

Add the PPA to your sources.list

#NB: the deb-src line and GPG key are to be found on the 
echo "deb-src http://ppa.launchpad.net/zfs-native/stable/ubuntu precise main" >> /etc/apt_sources.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F6B0FC61
apt-get update

Install build tools and required deps:

apt-get build-dep linux-headers-amd64 zfs-linux spl-linux

build the zfs-linux packages

apt-get source -b zfs-dkms 

build the spl-linux packages

apt-get source -b spl-linux

install the resulting stuff

dpkg -i "zfsutils_0.6.0.86-0ubuntu1~precise1_amd64.deb zfs-dkms_0.6.0.86-0ubuntu1~precise1_amd64.deb libzpool1_0.6.0.86-0ubuntu1~precise1_amd64.deb libzfs1_0.6.0.86-0ubuntu1~precise1_amd64.deb libuutil1_0.6.0.86-0ubuntu1~precise1_amd64.deb libnvpair1_0.6.0.86-0ubuntu1~precise1_amd64.deb spl-dkms_0.6.0.86-0ubuntu1~precise1_all.deb"

#Activate zfs on startup and reboot: #In /etc/default/zfs ZFS_MOUNT='yes' ZFS_UNMOUNT='yes' ZFS_UNMOUNT='yes'