From 43a45f995f08bb4e134abc460d211a88db0e53d9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 10 Nov 2024 06:25:00 +0100 Subject: Adding udev rules for rbd to activate LUKS volumes. Signed-off-by: Daniel Baumann --- debian/patches/series | 1 + debian/patches/udev-luks-on-rbd.patch | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 debian/patches/udev-luks-on-rbd.patch diff --git a/debian/patches/series b/debian/patches/series index 5340a4474..21df29b76 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -20,3 +20,4 @@ ceph-exporter-systemd.patch dout-fix.patch lp2080208.patch pass-build-flags.patch +udev-luks-on-rbd.patch diff --git a/debian/patches/udev-luks-on-rbd.patch b/debian/patches/udev-luks-on-rbd.patch new file mode 100644 index 000000000..3c35e1d60 --- /dev/null +++ b/debian/patches/udev-luks-on-rbd.patch @@ -0,0 +1,15 @@ +Author: Daniel Schreiber +Description: udev rules for rbd to activate LUKS volumes (Closes: #1064970) + +diff -Naurp ceph.orig/udev/50-rbd.rules ceph/udev/50-rbd.rules +--- ceph.orig/udev/50-rbd.rules ++++ ceph/udev/50-rbd.rules +@@ -1,5 +1,8 @@ + KERNEL=="rbd[0-9]*", ENV{DEVTYPE}=="disk", PROGRAM="/usr/bin/ceph-rbdnamer %k", SYMLINK+="rbd/%c" + KERNEL=="rbd[0-9]*", ENV{DEVTYPE}=="partition", PROGRAM="/usr/bin/ceph-rbdnamer %k", SYMLINK+="rbd/%c-part%n" + ++KERNEL=="rbd*", ENV{DEVTYPE}=="partition", IMPORT{builtin}="blkid --noraid" ++KERNEL=="rbd*", ENV{DEVTYPE}=="partition", ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}" ++ + # This is a placeholder, uncomment and edit as necessary + #KERNEL=="rbd[0-9]*", ENV{DEVTYPE}=="disk", ACTION=="add|change", ATTR{bdi/read_ahead_kb}="128" -- cgit v1.2.3