aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/zfs-0.7.13-install-debian9.sh
blob: a215123785ccf67148229fcf2725a1960e6deb2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#! /bin/sh

ZFSDEBDIR=`readlink -f ../zfs-linux-0.7.13-debian9-amd64`

#apt-get install spl-dkms spl
dpkg -i $ZFSDEBDIR/spl-dkms_0.7.13-1_amd64.deb
dpkg -i $ZFSDEBDIR/spl_0.7.13-1_amd64.deb

#apt-get install libnvpair1 libuutil1 libzpool2 libzfs2
dpkg -i $ZFSDEBDIR/libuutil1_0.7.13-1_amd64.deb 
dpkg -i $ZFSDEBDIR/libnvpair1_0.7.13-1_amd64.deb
dpkg -i $ZFSDEBDIR/libzpool2_0.7.13-1_amd64.deb
dpkg -i $ZFSDEBDIR/libzfs2_0.7.13-1_amd64.deb
#apt-get install zfs-dkms zfs zfs-initramfs
dpkg -i $ZFSDEBDIR/zfs-dkms_0.7.13-1_amd64.deb
dpkg -i $ZFSDEBDIR/zfs_0.7.13-1_amd64.deb
dpkg -i $ZFSDEBDIR/zfs-initramfs_0.7.13-1_amd64.deb

apt-mark manual zfs-initramfs zfs zfs-dkms libzfs2 libzpool2 libuutil1 libnvpair1 spl spl-dkms dkms

# FIX /etc/default/zfs
# ZFS_INITRD_ADDITIONAL_DATASETS="$POOL/users $POOL/users/root $POOL/backup $POOL/data $POOL/services $POOL/projects"
# and run: update-initramfs -u -k all

##apt-get install grub-common grub-pc grub-pc-bin grub2-common