]>
git.ipfire.org Git - thirdparty/dracut.git/blob - modules.d/90btrfs/module-setup.sh
80a538fd574469c2455861af9a8a473965dcc665
2 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
3 # ex: ts=8 sw=4 sts=4 et filetype=sh
8 # if we don't have btrfs installed on the host system,
9 # no point in trying to support it in the initramfs.
10 type -P btrfs
>/dev
/null ||
return 1
12 [[ $hostonly ]] ||
[[ $mount_needs ]] && {
13 for fs
in ${host_fs_types[@]}; do
14 [[ "$fs" == "btrfs" ]] && return 0
35 if ! inst_rules
64-btrfs.rules
; then
36 inst_rules
"$moddir/80-btrfs.rules"
37 case "$(btrfs --help)" in
39 inst_script
"$moddir/btrfs_device_ready.sh" /sbin
/btrfs_finished
;;
41 inst_script
"$moddir/btrfs_finished.sh" /sbin
/btrfs_finished
;;
45 if ! dracut_module_included
"systemd"; then
46 inst_hook initqueue
/timeout
10 "$moddir/btrfs_timeout.sh"
49 inst_multiple
-o btrfsck btrfs-zero-log
50 inst $
(command -v btrfs
) /sbin
/btrfs