Skip to content

Commit

Permalink
nixos/bcache: add services.udev.packages = [ bcache-tools ]
Browse files Browse the repository at this point in the history
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.

(cherry picked from commit 5b48368)
  • Loading branch information
bjornfor committed Jun 25, 2017
1 parent b71f5e3 commit d0ad6a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nixos/modules/tasks/bcache.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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/
'';
Expand Down

0 comments on commit d0ad6a7

Please sign in to comment.