diff options
author | Daniel Baumann <daniel@debian.org> | 2024-11-10 06:25:00 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2024-11-10 09:17:12 +0100 |
commit | 43a45f995f08bb4e134abc460d211a88db0e53d9 (patch) | |
tree | d3ca2f52a7189678b649b26750b7916761cefa51 | |
parent | Moving systemd units to /usr. (diff) | |
download | ceph-19-43a45f995f08bb4e134abc460d211a88db0e53d9.tar.xz ceph-19-43a45f995f08bb4e134abc460d211a88db0e53d9.zip |
Adding udev rules for rbd to activate LUKS volumes.
Signed-off-by: Daniel Baumann <daniel@debian.org>
-rw-r--r-- | debian/patches/series | 1 | ||||
-rw-r--r-- | debian/patches/udev-luks-on-rbd.patch | 15 |
2 files changed, 16 insertions, 0 deletions
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 <daniel.schreiber@hrz.tu-chemnitz.de> +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" |