summaryrefslogtreecommitdiff
path: root/bcache-register
diff options
context:
space:
mode:
authorSimon Gomizelj <simongmzlj@gmail.com>2014-06-28 21:31:51 -0400
committerGabriel <g2p.code@gmail.com>2014-12-04 23:35:29 +0100
commit399021549984ad27bf4a13ae85e458833fe003d7 (patch)
tree262627a53dadb84378f20d7844c7d87a364906f6 /bcache-register
parent25016feee1aab63c4cdc1188bae40e481d6b17c1 (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 'bcache-register')
-rwxr-xr-xbcache-register4
1 files changed, 0 insertions, 4 deletions
diff --git a/bcache-register b/bcache-register
deleted file mode 100755
index 9b592bc..0000000
--- a/bcache-register
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-/sbin/modprobe -qba bcache
-test -f /sys/fs/bcache/register_quiet && echo "$1" > /sys/fs/bcache/register_quiet
-