nixos/palace: Hide guest NVMe disks from LVM by every name
`global_filter` rejected `/dev/nvme*` but then accepted everything else, and LVM accepts a device if any of its names is accepted: the disk's `/dev/disk/by-*` links were. So `palace` saw `slop-cannon`'s volume group, also called `main`, and LVM commands naming `main` refused to run while the disk was connected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit was merged in pull request #19.
This commit is contained in:
1 parent
57a21b459b
commit
5fcd2f29be
2 files changed
+7
-2
No files matched your search
@@ -86,9 +86,10 @@ in
|
||||
};
|
||||
|
||||
# NVMe-oF disks connected here belong to guests (`palace` has no NVMe of its own; its
|
||||
# drives are passed to `cellar`); never activate their volume groups
|
||||
# drives are passed to `cellar`); never activate their volume groups. No accept pattern:
|
||||
# LVM accepts a device if any of its other names (`/dev/disk/by-*`) is accepted.
|
||||
environment.etc."lvm/lvm.conf".text = ''
|
||||
devices/global_filter = [ "r|^/dev/nvme|" "a|.*|" ]
|
||||
devices/global_filter = [ "r|^/dev/nvme|" ]
|
||||
'';
|
||||
|
||||
services = {
|
||||
|
||||
Reference in new issue
Block a user