diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2017-06-01 22:45:41 +0200 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2017-06-10 17:10:49 +0200 |
commit | 5b48368386864af78658b7c18608df57f8e8a386 (patch) | |
tree | f70ff50522022c5c7095c056e287cc229885fc78 /nixos/modules/tasks/bcache.nix | |
parent | 581226cfb456b4c116594f1b79f45945703a4a4c (diff) | |
download | nixlib-5b48368386864af78658b7c18608df57f8e8a386.tar nixlib-5b48368386864af78658b7c18608df57f8e8a386.tar.gz nixlib-5b48368386864af78658b7c18608df57f8e8a386.tar.bz2 nixlib-5b48368386864af78658b7c18608df57f8e8a386.tar.lz nixlib-5b48368386864af78658b7c18608df57f8e8a386.tar.xz nixlib-5b48368386864af78658b7c18608df57f8e8a386.tar.zst nixlib-5b48368386864af78658b7c18608df57f8e8a386.zip |
nixos/bcache: add services.udev.packages = [ bcache-tools ]
Adds /dev/disk/by-{id,label}/* symlinks for bcache device nodes, in the final rootfs. Symlinks will only be created for bcache devices that contain filesystems. So if you have a blank bcache device or run LVM on top of bcache you will not get this kind of symlink.
Diffstat (limited to 'nixos/modules/tasks/bcache.nix')
-rw-r--r-- | nixos/modules/tasks/bcache.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/tasks/bcache.nix b/nixos/modules/tasks/bcache.nix index f988ec02af72..3bfdf89e0cf5 100644 --- a/nixos/modules/tasks/bcache.nix +++ b/nixos/modules/tasks/bcache.nix @@ -4,6 +4,8 @@ environment.systemPackages = [ pkgs.bcache-tools ]; + services.udev.packages = [ pkgs.bcache-tools ]; + boot.initrd.extraUdevRulesCommands = '' cp -v ${pkgs.bcache-tools}/lib/udev/rules.d/*.rules $out/ ''; |