|
Rolf Fokkens |
44fdd8c |
diff -ruN bcache-tools-1.0.8.orig/69-bcache.rules bcache-tools-1.0.8/69-bcache.rules
|
|
Rolf Fokkens |
44fdd8c |
--- bcache-tools-1.0.8.orig/69-bcache.rules 2014-12-04 23:51:24.000000000 +0100
|
|
Rolf Fokkens |
44fdd8c |
+++ bcache-tools-1.0.8/69-bcache.rules 2014-12-05 19:38:42.284643952 +0100
|
|
Rolf Fokkens |
44fdd8c |
@@ -7,17 +7,10 @@
|
|
Rolf Fokkens |
44fdd8c |
KERNEL=="fd*|sr*", GOTO="bcache_end"
|
|
Rolf Fokkens |
64697ee |
|
|
Rolf Fokkens |
64697ee |
# blkid was run by the standard udev rules
|
|
Rolf Fokkens |
64697ee |
-# It recognised bcache (util-linux 2.24+)
|
|
Rolf Fokkens |
64697ee |
-ENV{ID_FS_TYPE}=="bcache", GOTO="bcache_backing_found"
|
|
Rolf Fokkens |
64697ee |
-# It recognised something else; bail
|
|
Rolf Fokkens |
64697ee |
-ENV{ID_FS_TYPE}=="?*", GOTO="bcache_backing_end"
|
|
Rolf Fokkens |
64697ee |
-
|
|
Rolf Fokkens |
64697ee |
# Backing devices: scan, symlink, register
|
|
Rolf Fokkens |
64697ee |
-IMPORT{program}="probe-bcache -o udev $tempnode"
|
|
Rolf Fokkens |
64697ee |
ENV{ID_FS_TYPE}!="bcache", GOTO="bcache_backing_end"
|
|
Rolf Fokkens |
64697ee |
ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"
|
|
Rolf Fokkens |
64697ee |
|
|
Rolf Fokkens |
64697ee |
-LABEL="bcache_backing_found"
|
|
Rolf Fokkens |
44fdd8c |
RUN{builtin}+="kmod load bcache"
|
|
Rolf Fokkens |
64697ee |
RUN+="bcache-register $tempnode"
|
|
Rolf Fokkens |
64697ee |
LABEL="bcache_backing_end"
|
|
Rolf Fokkens |
44fdd8c |
diff -ruN bcache-tools-1.0.8.orig/dracut/module-setup.sh bcache-tools-1.0.8/dracut/module-setup.sh
|
|
Rolf Fokkens |
44fdd8c |
--- bcache-tools-1.0.8.orig/dracut/module-setup.sh 2014-12-04 23:51:24.000000000 +0100
|
|
Rolf Fokkens |
44fdd8c |
+++ bcache-tools-1.0.8/dracut/module-setup.sh 2014-12-05 19:32:37.771480651 +0100
|
|
Rolf Fokkens |
64697ee |
@@ -29,6 +29,6 @@
|
|
Rolf Fokkens |
64697ee |
}
|
|
Rolf Fokkens |
64697ee |
|
|
Rolf Fokkens |
64697ee |
install() {
|
|
Rolf Fokkens |
64697ee |
- inst_multiple ${udevdir}/probe-bcache ${udevdir}/bcache-register
|
|
Rolf Fokkens |
64697ee |
+ inst_multiple ${udevdir}/bcache-register
|
|
Rolf Fokkens |
64697ee |
inst_rules 69-bcache.rules
|
|
Rolf Fokkens |
64697ee |
}
|