summaryrefslogtreecommitdiff
path: root/initcpio/install
diff options
context:
space:
mode:
authorGabriel <g2p.code@gmail.com>2013-10-18 16:21:45 +0200
committerGabriel <g2p.code@gmail.com>2013-10-18 16:24:33 +0200
commit2616293e73ac188fc53f744353bea1f4890b0a10 (patch)
tree4af82c63ff988525663ab407de7f8fe7d6930133 /initcpio/install
parent819eb356953625964d34e05c28ed9b87b72108b4 (diff)
Add a mkinitcpio hook
Taken from the Arch Linux wiki, with some paths updated. Untested.
Diffstat (limited to 'initcpio/install')
-rwxr-xr-xinitcpio/install14
1 files changed, 14 insertions, 0 deletions
diff --git a/initcpio/install b/initcpio/install
new file mode 100755
index 0000000..72d4231
--- /dev/null
+++ b/initcpio/install
@@ -0,0 +1,14 @@
+#!/bin/bash
+build() {
+ add_module bcache
+ add_binary /usr/lib/udev/bcache-register
+ add_binary /usr/lib/udev/probe-bcache
+ add_file /usr/lib/udev/rules.d/69-bcache.rules
+}
+help() {
+ cat <<HELPEOF
+This hook will auto-assemble bcache devices.
+Requires the udev hook.
+HELPEOF
+}
+