|
Harald Hoyer |
53e990 |
From 6a767ee403095cdeb67b7cb5f69e8586ad19650a Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
53e990 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
53e990 |
Date: Fri, 22 Jun 2012 15:33:42 +0200
|
|
Harald Hoyer |
53e990 |
Subject: [PATCH] modules.d/*/module-setup.sh: no more sourcing of
|
|
Harald Hoyer |
53e990 |
dracutfunctions
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
---
|
|
Harald Hoyer |
53e990 |
modules.d/90btrfs/module-setup.sh | 3 ---
|
|
Harald Hoyer |
53e990 |
modules.d/90crypt/module-setup.sh | 2 --
|
|
Harald Hoyer |
53e990 |
modules.d/90dmraid/module-setup.sh | 3 ---
|
|
Harald Hoyer |
53e990 |
modules.d/90lvm/module-setup.sh | 3 ---
|
|
Harald Hoyer |
53e990 |
modules.d/90mdraid/module-setup.sh | 3 ---
|
|
Harald Hoyer |
53e990 |
modules.d/90multipath/module-setup.sh | 3 ---
|
|
Harald Hoyer |
53e990 |
modules.d/95iscsi/module-setup.sh | 4 ----
|
|
Harald Hoyer |
53e990 |
modules.d/95nbd/module-setup.sh | 1 -
|
|
Harald Hoyer |
53e990 |
8 files changed, 22 deletions(-)
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
diff --git a/modules.d/90btrfs/module-setup.sh b/modules.d/90btrfs/module-setup.sh
|
|
Harald Hoyer |
53e990 |
index 135abc6..7d8fae0 100755
|
|
Harald Hoyer |
53e990 |
--- a/modules.d/90btrfs/module-setup.sh
|
|
Harald Hoyer |
53e990 |
+++ b/modules.d/90btrfs/module-setup.sh
|
|
Harald Hoyer |
53e990 |
@@ -8,9 +8,6 @@ check() {
|
|
Harald Hoyer |
53e990 |
# no point in trying to support it in the initramfs.
|
|
Harald Hoyer |
53e990 |
type -P btrfs >/dev/null || return 1
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
- . $dracutfunctions
|
|
Harald Hoyer |
53e990 |
- [[ $debug ]] && set -x
|
|
Harald Hoyer |
53e990 |
-
|
|
Harald Hoyer |
53e990 |
[[ $hostonly ]] || [[ $mount_needs ]] && {
|
|
Harald Hoyer |
53e990 |
local _found
|
|
Harald Hoyer |
53e990 |
for fs in ${host_fs_types[@]}; do
|
|
Harald Hoyer |
53e990 |
diff --git a/modules.d/90crypt/module-setup.sh b/modules.d/90crypt/module-setup.sh
|
|
Harald Hoyer |
53e990 |
index 5082434..16d6f89 100755
|
|
Harald Hoyer |
53e990 |
--- a/modules.d/90crypt/module-setup.sh
|
|
Harald Hoyer |
53e990 |
+++ b/modules.d/90crypt/module-setup.sh
|
|
Harald Hoyer |
53e990 |
@@ -7,8 +7,6 @@ check() {
|
|
Harald Hoyer |
53e990 |
# if cryptsetup is not installed, then we cannot support encrypted devices.
|
|
Harald Hoyer |
53e990 |
type -P cryptsetup >/dev/null || return 1
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
- . $dracutfunctions
|
|
Harald Hoyer |
53e990 |
-
|
|
Harald Hoyer |
53e990 |
check_crypt() {
|
|
Harald Hoyer |
53e990 |
local dev=$1 fs=$2
|
|
Harald Hoyer |
53e990 |
[[ $fs = "crypto_LUKS" ]] || return 1
|
|
Harald Hoyer |
53e990 |
diff --git a/modules.d/90dmraid/module-setup.sh b/modules.d/90dmraid/module-setup.sh
|
|
Harald Hoyer |
53e990 |
index 5ce7051..dad54a4 100755
|
|
Harald Hoyer |
53e990 |
--- a/modules.d/90dmraid/module-setup.sh
|
|
Harald Hoyer |
53e990 |
+++ b/modules.d/90dmraid/module-setup.sh
|
|
Harald Hoyer |
53e990 |
@@ -8,9 +8,6 @@ check() {
|
|
Harald Hoyer |
53e990 |
# in trying to support it in the initramfs.
|
|
Harald Hoyer |
53e990 |
type -P dmraid >/dev/null || return 1
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
- . $dracutfunctions
|
|
Harald Hoyer |
53e990 |
- [[ $debug ]] && set -x
|
|
Harald Hoyer |
53e990 |
-
|
|
Harald Hoyer |
53e990 |
check_dmraid() {
|
|
Harald Hoyer |
53e990 |
local dev=$1 fs=$2 holder DEVPATH DM_NAME
|
|
Harald Hoyer |
53e990 |
[[ "$fs" = "${fs%%_raid_member}" ]] && return 1
|
|
Harald Hoyer |
53e990 |
diff --git a/modules.d/90lvm/module-setup.sh b/modules.d/90lvm/module-setup.sh
|
|
Harald Hoyer |
53e990 |
index 2ce5c50..5182b79 100755
|
|
Harald Hoyer |
53e990 |
--- a/modules.d/90lvm/module-setup.sh
|
|
Harald Hoyer |
53e990 |
+++ b/modules.d/90lvm/module-setup.sh
|
|
Harald Hoyer |
53e990 |
@@ -7,9 +7,6 @@ check() {
|
|
Harald Hoyer |
53e990 |
# No point trying to support lvm if the binaries are missing
|
|
Harald Hoyer |
53e990 |
type -P lvm >/dev/null || return 1
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
- . $dracutfunctions
|
|
Harald Hoyer |
53e990 |
- [[ $debug ]] && set -x
|
|
Harald Hoyer |
53e990 |
-
|
|
Harald Hoyer |
53e990 |
check_lvm() {
|
|
Harald Hoyer |
53e990 |
local DM_VG_NAME DM_LV_NAME DM_UDEV_DISABLE_DISK_RULES_FLAG
|
|
Harald Hoyer |
53e990 |
eval $(udevadm info --query=property --name=$1|egrep '(DM_VG_NAME|DM_LV_NAME|DM_UDEV_DISABLE_DISK_RULES_FLAG)=')
|
|
Harald Hoyer |
53e990 |
diff --git a/modules.d/90mdraid/module-setup.sh b/modules.d/90mdraid/module-setup.sh
|
|
Harald Hoyer |
53e990 |
index 350aff8..56f881e 100755
|
|
Harald Hoyer |
53e990 |
--- a/modules.d/90mdraid/module-setup.sh
|
|
Harald Hoyer |
53e990 |
+++ b/modules.d/90mdraid/module-setup.sh
|
|
Harald Hoyer |
53e990 |
@@ -7,9 +7,6 @@ check() {
|
|
Harald Hoyer |
53e990 |
# No mdadm? No mdraid support.
|
|
Harald Hoyer |
53e990 |
type -P mdadm >/dev/null || return 1
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
- . $dracutfunctions
|
|
Harald Hoyer |
53e990 |
- [[ $debug ]] && set -x
|
|
Harald Hoyer |
53e990 |
-
|
|
Harald Hoyer |
53e990 |
check_mdraid() {
|
|
Harald Hoyer |
53e990 |
local dev=$1 fs=$2 holder DEVPATH MD_UUID
|
|
Harald Hoyer |
53e990 |
[[ "$fs" = "${fs%%_raid_member}" ]] && return 1
|
|
Harald Hoyer |
53e990 |
diff --git a/modules.d/90multipath/module-setup.sh b/modules.d/90multipath/module-setup.sh
|
|
Harald Hoyer |
53e990 |
index 8791560..bfa4bf8 100755
|
|
Harald Hoyer |
53e990 |
--- a/modules.d/90multipath/module-setup.sh
|
|
Harald Hoyer |
53e990 |
+++ b/modules.d/90multipath/module-setup.sh
|
|
Harald Hoyer |
53e990 |
@@ -7,9 +7,6 @@ check() {
|
|
Harald Hoyer |
53e990 |
# if there's no multipath binary, no go.
|
|
Harald Hoyer |
53e990 |
type -P multipath >/dev/null || return 1
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
- . $dracutfunctions
|
|
Harald Hoyer |
53e990 |
- [[ $debug ]] && set -x
|
|
Harald Hoyer |
53e990 |
-
|
|
Harald Hoyer |
53e990 |
is_mpath() {
|
|
Harald Hoyer |
53e990 |
local _dev
|
|
Harald Hoyer |
53e990 |
_dev=$(get_maj_min $1)
|
|
Harald Hoyer |
53e990 |
diff --git a/modules.d/95iscsi/module-setup.sh b/modules.d/95iscsi/module-setup.sh
|
|
Harald Hoyer |
53e990 |
index 5f935d7..1787f92 100755
|
|
Harald Hoyer |
53e990 |
--- a/modules.d/95iscsi/module-setup.sh
|
|
Harald Hoyer |
53e990 |
+++ b/modules.d/95iscsi/module-setup.sh
|
|
Harald Hoyer |
53e990 |
@@ -10,10 +10,6 @@ check() {
|
|
Harald Hoyer |
53e990 |
# If hostonly was requested, fail the check if we are not actually
|
|
Harald Hoyer |
53e990 |
# booting from root.
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
- . $dracutfunctions
|
|
Harald Hoyer |
53e990 |
-
|
|
Harald Hoyer |
53e990 |
- [[ $debug ]] && set -x
|
|
Harald Hoyer |
53e990 |
-
|
|
Harald Hoyer |
53e990 |
is_iscsi() (
|
|
Harald Hoyer |
53e990 |
local _dev
|
|
Harald Hoyer |
53e990 |
_dev=$(get_maj_min $1)
|
|
Harald Hoyer |
53e990 |
diff --git a/modules.d/95nbd/module-setup.sh b/modules.d/95nbd/module-setup.sh
|
|
Harald Hoyer |
53e990 |
index c0f71cc..092aade 100755
|
|
Harald Hoyer |
53e990 |
--- a/modules.d/95nbd/module-setup.sh
|
|
Harald Hoyer |
53e990 |
+++ b/modules.d/95nbd/module-setup.sh
|
|
Harald Hoyer |
53e990 |
@@ -11,7 +11,6 @@ check() {
|
|
Harald Hoyer |
53e990 |
# mounted on, fail the hostonly check.
|
|
Harald Hoyer |
53e990 |
[[ $hostonly ]] || [[ $mount_needs ]] && {
|
|
Harald Hoyer |
53e990 |
is_nbd() { [[ -b /dev/block/$1 && $1 == 43:* ]] ;}
|
|
Harald Hoyer |
53e990 |
- . $dracutfunctions
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
_rootdev=$(find_root_block_device)
|
|
Harald Hoyer |
53e990 |
[[ -b /dev/block/$_rootdev ]] || return 1
|