Differences between revisions 1 and 6 (spanning 5 versions)
Revision 1 as of 2012-12-10 15:41:02
Size: 1256
Comment:
Revision 6 as of 2012-12-10 16:16:23
Size: 1341
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
Install the Debian SDK:
  *
Install the Debian SDK:
Line 8: Line 9:
Add the PPA to your sources.list   * Add the PPA to your sources.list
Line 10: Line 11:
#NB: the deb-src line and GPG key are to be found on the #NB: the deb-src line and GPG key are to be found on the "Technical Details"
#page of the PPA
Line 16: Line 18:
Install build tools and required deps   * Install build tools and required deps:
{{{
Line 18: Line 21:
}}}
Line 19: Line 23:
#build the zfs-linux packages   * Build the zfs-linux packages
{{{
Line 21: Line 26:
}}}
build the spl-linux packages
{{{
apt-get source -b spl-linux
}}}
Line 22: Line 32:
#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"
}}}
Line 25: Line 37:
#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
Activate zfs on startup and reboot:
{{{
#in /etc/default/zfs
Line 32: Line 42:
ZFS_UNMOUNT='yes' }}}

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 "Technical Details"
#page of the PPA
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'