add module btrfs

master
Harald Hoyer 2010-04-13 14:03:05 +02:00
parent 0e0bf83057
commit 58ffd15bff
4 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,7 @@
SUBSYSTEM!="block", GOTO="btrfs_end"
ACTION!="add|change", GOTO="btrfs_end"

ENV{ID_FS_TYPE}=="btrfs", RUN+="/sbin/btrfs device scan $env{DEVNAME}"

LABEL="btrfs_end"

10
modules.d/90btrfs/check Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash

# We depend on udev-rules being loaded
[ "$1" = "-d" ] && exit 0

# if we don't have dmraid installed on the host system, no point
# in trying to support it in the initramfs.
which btrfs >/dev/null 2>&1 || exit 1

exit 0

4
modules.d/90btrfs/install Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash

inst_rules "$moddir/40-btrfs.rules"
dracut_install btrfs

View File

@ -24,7 +24,7 @@ else
inst_rules "$moddir/59-persistent-storage-volid.rules"
fi
inst_rules "$moddir/61-persistent-storage.rules"

for i in \
ata_id \
cdrom_id \