[pve-devel] [PATCH zfsonlinux 5/6] fix missing Breaks/Replaces for zfs-initramfs

Stoiko Ivanov s.ivanov at proxmox.com
Tue Oct 30 11:14:28 CET 2018


Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
 ...0008-Add-Breaks-Replaces-to-zfs-initramfs.patch | 43 ++++++++++++++++++++++
 zfs-patches/series                                 |  1 +
 2 files changed, 44 insertions(+)
 create mode 100644 zfs-patches/0008-Add-Breaks-Replaces-to-zfs-initramfs.patch

diff --git a/zfs-patches/0008-Add-Breaks-Replaces-to-zfs-initramfs.patch b/zfs-patches/0008-Add-Breaks-Replaces-to-zfs-initramfs.patch
new file mode 100644
index 0000000..e1e95ef
--- /dev/null
+++ b/zfs-patches/0008-Add-Breaks-Replaces-to-zfs-initramfs.patch
@@ -0,0 +1,43 @@
+From 5ac80068e911d3b0935903f713c5f492d518da91 Mon Sep 17 00:00:00 2001
+From: Stoiko Ivanov <s.ivanov at proxmox.com>
+Date: Mon, 29 Oct 2018 15:49:20 +0100
+Subject: [PATCH] Add Breaks/Replaces to zfs-initramfs
+
+addressing the move of zdev initramfs hook from zfsutils-linux to
+zfs-initramfs
+
+Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
+---
+ debian/control    | 2 ++
+ debian/control.in | 2 ++
+ 2 files changed, 4 insertions(+)
+
+diff --git a/debian/control b/debian/control
+index 4d22ff50..a414e449 100644
+--- a/debian/control
++++ b/debian/control
+@@ -117,6 +117,8 @@ Depends: busybox-initramfs | busybox-static | busybox,
+          zfs-modules | zfs-dkms,
+          zfsutils-linux (>= ${binary:Version}),
+          ${misc:Depends}
++Breaks: zfsutils-linux (<= 0.7.11-pve1~bpo1)
++Replaces: zfsutils-linux (<= 0.7.11-pve1~bpo1)
+ Description: OpenZFS root filesystem capabilities for Linux - initramfs
+  The Z file system is a pooled filesystem designed for maximum data
+  integrity, supporting data snapshots, multiple copies, and data
+diff --git a/debian/control.in b/debian/control.in
+index 96154c5c..b9c34331 100644
+--- a/debian/control.in
++++ b/debian/control.in
+@@ -117,6 +117,8 @@ Depends: busybox-initramfs | busybox-static | busybox,
+          zfs-modules | zfs-dkms,
+          zfsutils-linux (>= ${binary:Version}),
+          ${misc:Depends}
++Breaks: zfsutils-linux (<= 0.7.11-pve1~bpo1)
++Replaces: zfsutils-linux (<= 0.7.11-pve1~bpo1)
+ Description: OpenZFS root filesystem capabilities for Linux - initramfs
+  The Z file system is a pooled filesystem designed for maximum data
+  integrity, supporting data snapshots, multiple copies, and data
+-- 
+2.11.0
+
diff --git a/zfs-patches/series b/zfs-patches/series
index 1146f65..91d1508 100644
--- a/zfs-patches/series
+++ b/zfs-patches/series
@@ -5,3 +5,4 @@
 0005-Fix-race-in-dnode_check_slots_free.patch
 0006-Reduce-taskq-and-context-switch-cost-of-zio-pipe.patch
 0007-deadlock-between-mm_sem-and-tx-assign-in-zfs_write-a.patch
+0008-Add-Breaks-Replaces-to-zfs-initramfs.patch
-- 
2.11.0





More information about the pve-devel mailing list