From 06dc7ebe8f78fb15485a1835dfea3695e2e28e27 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 24 Apr 2023 01:38:33 +0200 Subject: add zfs-2.1.11-1 install scripts --- scripts/zfs-2.1.11-1-install-debian11-amd64.sh | 36 ++++++++++++++++++++++++++ scripts/zfs-2.1.11-1-install-debian12-amd64.sh | 36 ++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 scripts/zfs-2.1.11-1-install-debian11-amd64.sh create mode 100644 scripts/zfs-2.1.11-1-install-debian12-amd64.sh diff --git a/scripts/zfs-2.1.11-1-install-debian11-amd64.sh b/scripts/zfs-2.1.11-1-install-debian11-amd64.sh new file mode 100644 index 0000000..ee0159d --- /dev/null +++ b/scripts/zfs-2.1.11-1-install-debian11-amd64.sh @@ -0,0 +1,36 @@ +#! /bin/sh + +ZFSDEBDIR=`readlink -f ./zfs-linux-2.1.11-1-debian11-amd64` + +#skipped: +# libzfs5-devel_2.1.11-1_amd64.deb +# python3-pyzfs_2.1.11-1_amd64.deb +# zfs-dracut_2.1.11-1_amd64.deb +# zfs-test_2.1.11-1_amd64.deb +# zfs-2.1.11.tar.gz + +if [ -e /etc/default/zfs ] ; then + cp -a /etc/default/zfs /etc/default/zfs.cpy +fi + +#apt-get install libnvpair1 libuutil1 libzpool2 libzfs2 +dpkg -i $ZFSDEBDIR/libuutil3_2.1.11-1_amd64.deb +dpkg -i $ZFSDEBDIR/libnvpair3_2.1.11-1_amd64.deb +dpkg -i $ZFSDEBDIR/libzfs5_2.1.11-1_amd64.deb +dpkg -i $ZFSDEBDIR/libzpool5_2.1.11-1_amd64.deb +#apt-get install zfs-dkms zfs zfs-initramfs +dpkg -i $ZFSDEBDIR/zfs-dkms_2.1.11-1_amd64.deb +dpkg -i $ZFSDEBDIR/zfs_2.1.11-1_amd64.deb +dpkg -i $ZFSDEBDIR/zfs-initramfs_2.1.11-1_amd64.deb + +# apt-mark manual zfs-initramfs zfs zfs-dkms libzfs2 libzfs4 libzfs5 libzpool2 libzpool4 libzpool5 libuutil1 libuutil3 libnvpair1 libnvpair3 +apt-mark manual zfs-initramfs zfs zfs-dkms libzfs2 libzfs4 libzfs5 libzpool2 libzpool5 libuutil1 libuutil3 libnvpair1 libnvpair3 + +# 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 +# systemctl enable zfs-import-cache.service zfs-mount.service zfs-zed.service zfs-import.target zfs-volumes.target zfs.target +# systemctl start zfs-import-cache.service zfs-mount.service zfs-zed.service zfs-import.target zfs-volumes.target zfs.target + diff --git a/scripts/zfs-2.1.11-1-install-debian12-amd64.sh b/scripts/zfs-2.1.11-1-install-debian12-amd64.sh new file mode 100644 index 0000000..f0643a6 --- /dev/null +++ b/scripts/zfs-2.1.11-1-install-debian12-amd64.sh @@ -0,0 +1,36 @@ +#! /bin/sh + +ZFSDEBDIR=`readlink -f ./zfs-linux-2.1.11-1-debian12-amd64` + +#skipped: +# libzfs5-devel_2.1.11-1_amd64.deb +# python3-pyzfs_2.1.11-1_amd64.deb +# zfs-dracut_2.1.11-1_amd64.deb +# zfs-test_2.1.11-1_amd64.deb +# zfs-2.1.11.tar.gz + +if [ -e /etc/default/zfs ] ; then + cp -a /etc/default/zfs /etc/default/zfs.cpy +fi + +#apt-get install libnvpair1 libuutil1 libzpool2 libzfs2 +dpkg -i $ZFSDEBDIR/libuutil3_2.1.11-1_amd64.deb +dpkg -i $ZFSDEBDIR/libnvpair3_2.1.11-1_amd64.deb +dpkg -i $ZFSDEBDIR/libzfs5_2.1.11-1_amd64.deb +dpkg -i $ZFSDEBDIR/libzpool5_2.1.11-1_amd64.deb +#apt-get install zfs-dkms zfs zfs-initramfs +dpkg -i $ZFSDEBDIR/zfs-dkms_2.1.11-1_amd64.deb +dpkg -i $ZFSDEBDIR/zfs_2.1.11-1_amd64.deb +dpkg -i $ZFSDEBDIR/zfs-initramfs_2.1.11-1_amd64.deb + +# apt-mark manual zfs-initramfs zfs zfs-dkms libzfs2 libzfs4 libzfs5 libzpool2 libzpool4 libzpool5 libuutil1 libuutil3 libnvpair1 libnvpair3 +apt-mark manual zfs-initramfs zfs zfs-dkms libzfs2 libzfs4 libzfs5 libzpool2 libzpool5 libuutil1 libuutil3 libnvpair1 libnvpair3 + +# 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 +# systemctl enable zfs-import-cache.service zfs-mount.service zfs-zed.service zfs-import.target zfs-volumes.target zfs.target +# systemctl start zfs-import-cache.service zfs-mount.service zfs-zed.service zfs-import.target zfs-volumes.target zfs.target + -- cgit v1.2.3