aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-07-15 05:51:55 +0200
committerSven Gothel <[email protected]>2021-07-15 05:51:55 +0200
commit14201948b2e8533cf35671cff17d9481e2052833 (patch)
treee56ee33d18f4b2b22e7fae787f9a4662b3c18bc6
parentbc5a1c11e6cafaf56aa2d0b78d46b3c0f2d02fed (diff)
Add zfs-2.1.0 scripts
-rw-r--r--scripts/zfs-2.0-remove.sh (renamed from scripts/zfs-2.0.2-remove.sh)0
-rw-r--r--scripts/zfs-2.1-remove.sh6
-rw-r--r--scripts/zfs-2.1.0-1-install-debian11.sh31
3 files changed, 37 insertions, 0 deletions
diff --git a/scripts/zfs-2.0.2-remove.sh b/scripts/zfs-2.0-remove.sh
index aa47774..aa47774 100644
--- a/scripts/zfs-2.0.2-remove.sh
+++ b/scripts/zfs-2.0-remove.sh
diff --git a/scripts/zfs-2.1-remove.sh b/scripts/zfs-2.1-remove.sh
new file mode 100644
index 0000000..d155a21
--- /dev/null
+++ b/scripts/zfs-2.1-remove.sh
@@ -0,0 +1,6 @@
+
+# version 2.1.*
+dpkg -r --force-all zfs-initramfs zfs zfs-dkms libzfs5 libzpool5 libuutil3 libnvpair3
+dpkg -P --force-all zfs-initramfs zfs zfs-dkms libzfs5 libzpool5 libuutil3 libnvpair3
+
+#dpkg -r grub-common grub-pc grub-pc-bin grub2-common
diff --git a/scripts/zfs-2.1.0-1-install-debian11.sh b/scripts/zfs-2.1.0-1-install-debian11.sh
new file mode 100644
index 0000000..b9042bc
--- /dev/null
+++ b/scripts/zfs-2.1.0-1-install-debian11.sh
@@ -0,0 +1,31 @@
+#! /bin/sh
+
+ZFSDEBDIR=`readlink -f ../zfs-linux-2.1.0-1-debian11-amd64`
+
+#skipped:
+# libzfs5-devel_2.1.0-1_amd64.deb
+# python3-pyzfs_2.1.0-1_amd64.deb
+# zfs-dracut_2.1.0-1_amd64.deb
+# zfs-test_2.1.0-1_amd64.deb
+# zfs-2.1.0.tar.gz
+
+#apt-get install libnvpair1 libuutil1 libzpool2 libzfs2
+dpkg -i $ZFSDEBDIR/libuutil3_2.1.0-1_amd64.deb
+dpkg -i $ZFSDEBDIR/libnvpair3_2.1.0-1_amd64.deb
+dpkg -i $ZFSDEBDIR/libzpool5_2.1.0-1_amd64.deb
+dpkg -i $ZFSDEBDIR/libzfs5_2.1.0-1_amd64.deb
+#apt-get install zfs-dkms zfs zfs-initramfs
+dpkg -i $ZFSDEBDIR/zfs-dkms_2.1.0-1_amd64.deb
+dpkg -i $ZFSDEBDIR/zfs_2.1.0-1_amd64.deb
+dpkg -i $ZFSDEBDIR/zfs-initramfs_2.1.0-1_amd64.deb
+
+apt-mark manual zfs-initramfs zfs zfs-dkms libzfs2 libzfs4 libzfs5 libzpool2 libzpool4 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
+