Browse Source

Needs btrfsctl, not btrfs module

master
Matt 15 years ago committed by Harald Hoyer
parent
commit
127fb81754
  1. 2
      modules.d/90btrfs/40-btrfs.rules
  2. 6
      modules.d/90btrfs/check
  3. 2
      modules.d/90btrfs/install

2
modules.d/90btrfs/40-btrfs.rules

@ -1,7 +1,7 @@ @@ -1,7 +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}"
ENV{ID_FS_TYPE}=="btrfs", RUN+="/sbin/btrfsctl -A $env{DEVNAME}"

LABEL="btrfs_end"


6
modules.d/90btrfs/check

@ -3,8 +3,8 @@ @@ -3,8 +3,8 @@
# 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
# if we don't have btrfs (btrfsctl) installed on the host system,
# no point in trying to support it in the initramfs.
which btrfsctl >/dev/null 2>&1 || exit 1

exit 0

2
modules.d/90btrfs/install

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

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

Loading…
Cancel
Save