From 517f82ec02a6d22b07a65796c0605fbaf39a3f3d Mon Sep 17 00:00:00 2001 From: Jason Cohen Date: Tue, 9 Apr 2019 21:59:24 -0500 Subject: [PATCH] Debian: Use stretch-backports Signed-off-by: Richard Laager --- Debian.md | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/Debian.md b/Debian.md index a226677..92d756f 100644 --- a/Debian.md +++ b/Debian.md @@ -1,7 +1,7 @@ Offical ZFS on Linux [DKMS][dkms] style packages are available from the [Debian GNU/Linux repository](https://tracker.debian.org/pkg/zfs-linux) for the following configurations. The packages previously hosted at archive.zfsonlinux.org will not be updated and are not recommended for new installations. -**Debian Releases:** Jessie and newer (testing, sid) -**Architectures:** amd64 +**Debian Releases:** Jessie, Stretch, and newer (testing, sid) +**Architectures:** amd64 # Table of contents - [Installation](#installation) @@ -11,21 +11,29 @@ Offical ZFS on Linux [DKMS][dkms] style packages are available from the [Debian - [[Dual booting OS X and Debian Jessie with ZFS root, cross mounting and full disk encryption]] ## Installation -For Debian Stretch, ZFS packages are included in [contrib repository](https://packages.debian.org/source/stretch/zfs-linux). +For Debian Stretch, updated ZFS packages are provided by [backports](https://backports.debian.org/Instructions/). For Debian Jessie, ZFS packages are provided by [backports](https://backports.debian.org/Instructions/). -Install kernel headers: +Add the backports repository: - # apt install linux-headers-$(uname -r) + # echo "deb http://deb.debian.org/debian stretch-backports main contrib" > /etc/apt/sources.list.d/stretch-backports.list + +Update the list of packages: + + # apt update + +Install kernel headers and other dependencies: + + # apt install linux-headers-$(uname -r) linux-headers-amd64 dkms build-essential libelf-dev Install zfs packages: - # apt-get install zfs-dkms zfsutils-linux + # apt-get install -t stretch-backports zfs-dkms zfsutils-linux If you want to boot from ZFS, you'll need `zfs-initramfs` package too: - # apt-get install zfs-initramfs + # apt-get install -t stretch-backports zfs-initramfs [dkms]: https://en.wikipedia.org/wiki/Dynamic_Kernel_Module_Support [debian-announce]: https://lists.debian.org/debian-devel-announce/2015/04/msg00006.html @@ -41,4 +49,3 @@ From Debian Stretch packages are included in Debian official `contrib` repositor 2) Remove ZFSonLinux repository. 3) [Install new packages](#installation), as described above. -