nixos/multipath: etc_prefix not configured correctly #385022
Labels
0.kind: bug
Something is broken
6.topic: nixos
Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Nixpkgs version
Describe the bug
The multipath module uses the package with the default
etc_prefix
build option. This means the module will fail to start the service when activated on an empty system because it tries to write into the nix store, relative to the build dir ({nix path}/etc/multipath
).This should be fixed either with the module or the package. A temporary fix is to use a package override, to let the module use
/etc/multipath
:Steps to reproduce
Set
services.multipath.enable = true;
on a system with eligible hardware, it will try to write bindings etc. to the nix store. I only tested (or rather can test) with FibreChannel cards.Expected behaviour
Write to
/etc
or a similiar directory.Screenshots
No response
Relevant log output
Additional context
No response
System metadata
"x86_64-linux"
Linux 6.12.13, NixOS, 24.11 (Vicuna), 24.11.20250224.3133e42
no
yes
nix-env (Nix) 2.24.12
not found
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e.
Resolves #ISSUE
.)I assert that this issue is relevant for Nixpkgs
Is this issue important to you?
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: