modules.d/*/module-setup.sh: no more sourcing of dracutfunctions

master
Harald Hoyer 2012-06-22 15:33:42 +02:00
parent 2d2c8c2078
commit 4d0f1d7b28
8 changed files with 0 additions and 22 deletions

View File

@ -8,9 +8,6 @@ check() {
# no point in trying to support it in the initramfs.
type -P btrfs >/dev/null || return 1

. $dracutfunctions
[[ $debug ]] && set -x

[[ $hostonly ]] || [[ $mount_needs ]] && {
local _found
for fs in ${host_fs_types[@]}; do

View File

@ -7,8 +7,6 @@ check() {
# if cryptsetup is not installed, then we cannot support encrypted devices.
type -P cryptsetup >/dev/null || return 1

. $dracutfunctions

check_crypt() {
local dev=$1 fs=$2
[[ $fs = "crypto_LUKS" ]] || return 1

View File

@ -8,9 +8,6 @@ check() {
# in trying to support it in the initramfs.
type -P dmraid >/dev/null || return 1

. $dracutfunctions
[[ $debug ]] && set -x

check_dmraid() {
local dev=$1 fs=$2 holder DEVPATH DM_NAME
[[ "$fs" = "${fs%%_raid_member}" ]] && return 1

View File

@ -7,9 +7,6 @@ check() {
# No point trying to support lvm if the binaries are missing
type -P lvm >/dev/null || return 1

. $dracutfunctions
[[ $debug ]] && set -x

check_lvm() {
local DM_VG_NAME DM_LV_NAME DM_UDEV_DISABLE_DISK_RULES_FLAG
eval $(udevadm info --query=property --name=$1|egrep '(DM_VG_NAME|DM_LV_NAME|DM_UDEV_DISABLE_DISK_RULES_FLAG)=')

View File

@ -7,9 +7,6 @@ check() {
# No mdadm? No mdraid support.
type -P mdadm >/dev/null || return 1

. $dracutfunctions
[[ $debug ]] && set -x

check_mdraid() {
local dev=$1 fs=$2 holder DEVPATH MD_UUID
[[ "$fs" = "${fs%%_raid_member}" ]] && return 1

View File

@ -7,9 +7,6 @@ check() {
# if there's no multipath binary, no go.
type -P multipath >/dev/null || return 1

. $dracutfunctions
[[ $debug ]] && set -x

is_mpath() {
local _dev
_dev=$(get_maj_min $1)

View File

@ -10,10 +10,6 @@ check() {
# If hostonly was requested, fail the check if we are not actually
# booting from root.

. $dracutfunctions

[[ $debug ]] && set -x

is_iscsi() (
local _dev
_dev=$(get_maj_min $1)

View File

@ -11,7 +11,6 @@ check() {
# mounted on, fail the hostonly check.
[[ $hostonly ]] || [[ $mount_needs ]] && {
is_nbd() { [[ -b /dev/block/$1 && $1 == 43:* ]] ;}
. $dracutfunctions

_rootdev=$(find_root_block_device)
[[ -b /dev/block/$_rootdev ]] || return 1