btrfsctl is being replaced by the btrfs command in the upstream
tools, so change accordingly. Also, if we're using the btrfs module
we should probably make sure the btrfs driver gets installed.
ACTION!="add|change", GOTO="btrfs_end"
ENV{ID_FS_TYPE}=="btrfs", RUN+="/sbin/modprobe btrfs"
-ENV{ID_FS_TYPE}=="btrfs", RUN+="/sbin/btrfsctl -A $env{DEVNAME}"
+ENV{ID_FS_TYPE}=="btrfs", RUN+="/sbin/btrfs device scan $env{DEVNAME}"
LABEL="btrfs_end"
# ex: ts=8 sw=4 sts=4 et filetype=sh
check() {
- # if we don't have btrfs (btrfsctl) installed on the host system,
+ # if we don't have btrfs installed on the host system,
# no point in trying to support it in the initramfs.
- type -P btrfsctl >/dev/null || return 1
+ type -P btrfs >/dev/null || return 1
. $dracutfunctions
[[ $debug ]] && set -x
return 0
}
+installkernel() {
+ instmods btrfs
+}
+
install() {
inst_rules "$moddir/80-btrfs.rules"
- dracut_install btrfsctl
+ dracut_install btrfs
}