From: Will Woods Date: Tue, 8 Mar 2011 23:35:15 +0000 (-0500) Subject: Use 'btrfs' command rather than 'btrfsctl', and install btrfs driver X-Git-Tag: 009~78 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a5e33c7d6f324fb3dddc111cbad9213460408903;p=thirdparty%2Fdracut.git Use 'btrfs' command rather than 'btrfsctl', and install btrfs driver 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. --- diff --git a/modules.d/90btrfs/80-btrfs.rules b/modules.d/90btrfs/80-btrfs.rules index 92c855367..7c98d986d 100644 --- a/modules.d/90btrfs/80-btrfs.rules +++ b/modules.d/90btrfs/80-btrfs.rules @@ -2,7 +2,7 @@ SUBSYSTEM!="block", GOTO="btrfs_end" 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" diff --git a/modules.d/90btrfs/module-setup.sh b/modules.d/90btrfs/module-setup.sh index 0503e1d5e..765d96092 100755 --- a/modules.d/90btrfs/module-setup.sh +++ b/modules.d/90btrfs/module-setup.sh @@ -3,9 +3,9 @@ # 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 @@ -27,8 +27,12 @@ depends() { return 0 } +installkernel() { + instmods btrfs +} + install() { inst_rules "$moddir/80-btrfs.rules" - dracut_install btrfsctl + dracut_install btrfs }