diff options
author | Simon Gomizelj <simongmzlj@gmail.com> | 2014-06-28 21:31:51 -0400 |
---|---|---|
committer | Gabriel <g2p.code@gmail.com> | 2014-12-04 23:35:29 +0100 |
commit | 399021549984ad27bf4a13ae85e458833fe003d7 (patch) | |
tree | 262627a53dadb84378f20d7844c7d87a364906f6 /69-bcache.rules | |
parent | 25016feee1aab63c4cdc1188bae40e481d6b17c1 (diff) |
Replace bcache-register with c, use builtin kmod
In a pure systemd pre-boot environment, register-bcache can't be shell
code as there is no shell available. Switch to loading the module with
udev's builtin kmod support and introduce a small binary for registering
devices.
Gabriel: Changed errors to be verbose
Diffstat (limited to '69-bcache.rules')
-rw-r--r-- | 69-bcache.rules | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/69-bcache.rules b/69-bcache.rules index 5d28e70..9cc7f0d 100644 --- a/69-bcache.rules +++ b/69-bcache.rules @@ -18,6 +18,7 @@ ENV{ID_FS_TYPE}!="bcache", GOTO="bcache_backing_end" ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}" LABEL="bcache_backing_found" +RUN{builtin}+="kmod load bcache" RUN+="bcache-register $tempnode" LABEL="bcache_backing_end" |