btrfs: Use upstream 64-btrfs.rules

master
Harald Hoyer 2013-02-21 17:17:34 +01:00
parent 9a9c6e1256
commit f12f694355
2 changed files with 12 additions and 10 deletions

View File

@ -4,6 +4,5 @@ ENV{ID_FS_TYPE}!="btrfs", GOTO="btrfs_end"
RUN+="/sbin/btrfs device scan $env{DEVNAME}"

RUN+="/sbin/initqueue --finished --unique --name btrfs_finished /sbin/btrfs_finished"
RUN+="/sbin/initqueue --timeout --onetime --unique --name btrfs_timeout /sbin/btrfs_timeout"

LABEL="btrfs_end"

View File

@ -30,16 +30,19 @@ installkernel() {
}

install() {
if ! inst_rules 64-btrfs.rules; then
inst_rules "$moddir/80-btrfs.rules"
inst_script "$moddir/btrfs_timeout.sh" /sbin/btrfs_timeout
dracut_install btrfsck
inst $(command -v btrfs) /sbin/btrfs

case "$(btrfs --help)" in
*device\ ready*)
inst_script "$moddir/btrfs_device_ready.sh" /sbin/btrfs_finished ;;
*)
inst_script "$moddir/btrfs_finished.sh" /sbin/btrfs_finished ;;
esac
fi

inst_script "$moddir/btrfs_timeout.sh" \
/usr/lib/dracut/hooks/initqueue/timeout/btrfs_timeout.sh
dracut_install btrfsck
inst $(command -v btrfs) /sbin/btrfs
}