|
Harald Hoyer |
811c04 |
From aec9f902f009bf7b13fe2ca679f95439c035c32a Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
811c04 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
811c04 |
Date: Fri, 27 Jul 2012 16:03:42 +0200
|
|
Harald Hoyer |
811c04 |
Subject: [PATCH] kernel-modules/module-setup.sh: move "$drivers"
|
|
Harald Hoyer |
811c04 |
"$filesystems" and "$add_drivers" to dracut.sh
|
|
Harald Hoyer |
811c04 |
|
|
Harald Hoyer |
811c04 |
---
|
|
Harald Hoyer |
811c04 |
dracut.sh | 16 ++++++++++++++--
|
|
Harald Hoyer |
811c04 |
modules.d/90kernel-modules/module-setup.sh | 11 -----------
|
|
Harald Hoyer |
811c04 |
2 files changed, 14 insertions(+), 13 deletions(-)
|
|
Harald Hoyer |
811c04 |
|
|
Harald Hoyer |
811c04 |
diff --git a/dracut.sh b/dracut.sh
|
|
Harald Hoyer |
811c04 |
index eee829e..4be4306 100755
|
|
Harald Hoyer |
811c04 |
--- a/dracut.sh
|
|
Harald Hoyer |
811c04 |
+++ b/dracut.sh
|
|
Harald Hoyer |
811c04 |
@@ -780,9 +780,9 @@ if ! [[ -d "$systemdutildir" ]]; then
|
|
Harald Hoyer |
811c04 |
fi
|
|
Harald Hoyer |
811c04 |
[[ -d "$systemdsystemunitdir" ]] || systemdsystemunitdir=${systemdutildir}/system
|
|
Harald Hoyer |
811c04 |
|
|
Harald Hoyer |
811c04 |
-export initdir dracutbasedir dracutmodules drivers \
|
|
Harald Hoyer |
811c04 |
+export initdir dracutbasedir dracutmodules \
|
|
Harald Hoyer |
811c04 |
fw_dir drivers_dir debug no_kernel kernel_only \
|
|
Harald Hoyer |
811c04 |
- add_drivers omit_drivers mdadmconf lvmconf filesystems \
|
|
Harald Hoyer |
811c04 |
+ omit_drivers mdadmconf lvmconf \
|
|
Harald Hoyer |
811c04 |
use_fstab fstab_lines libdirs fscks nofscks ro_mnt \
|
|
Harald Hoyer |
811c04 |
stdloglvl sysloglvl fileloglvl kmsgloglvl logfile \
|
|
Harald Hoyer |
811c04 |
debug host_fs_types host_devs sshkey add_fstab \
|
|
Harald Hoyer |
811c04 |
@@ -898,6 +898,18 @@ dinfo "*** Including modules done ***"
|
|
Harald Hoyer |
811c04 |
|
|
Harald Hoyer |
811c04 |
## final stuff that has to happen
|
|
Harald Hoyer |
811c04 |
if [[ $no_kernel != yes ]]; then
|
|
Harald Hoyer |
811c04 |
+
|
|
Harald Hoyer |
811c04 |
+ if [[ $drivers ]]; then
|
|
Harald Hoyer |
811c04 |
+ hostonly='' instmods $drivers
|
|
Harald Hoyer |
811c04 |
+ fi
|
|
Harald Hoyer |
811c04 |
+
|
|
Harald Hoyer |
811c04 |
+ if [[ $add_drivers ]]; then
|
|
Harald Hoyer |
811c04 |
+ hostonly='' instmods -c $add_drivers
|
|
Harald Hoyer |
811c04 |
+ fi
|
|
Harald Hoyer |
811c04 |
+ if [[ $filesystems ]]; then
|
|
Harald Hoyer |
811c04 |
+ hostonly='' instmods -c $filesystems
|
|
Harald Hoyer |
811c04 |
+ fi
|
|
Harald Hoyer |
811c04 |
+
|
|
Harald Hoyer |
811c04 |
dinfo "*** Installing kernel module dependencies and firmware ***"
|
|
Harald Hoyer |
811c04 |
dracut_kernel_post
|
|
Harald Hoyer |
811c04 |
dinfo "*** Installing kernel module dependencies and firmware done ***"
|
|
Harald Hoyer |
811c04 |
diff --git a/modules.d/90kernel-modules/module-setup.sh b/modules.d/90kernel-modules/module-setup.sh
|
|
Harald Hoyer |
811c04 |
index 5018dc1..47e2f0d 100755
|
|
Harald Hoyer |
811c04 |
--- a/modules.d/90kernel-modules/module-setup.sh
|
|
Harald Hoyer |
811c04 |
+++ b/modules.d/90kernel-modules/module-setup.sh
|
|
Harald Hoyer |
811c04 |
@@ -61,17 +61,6 @@ installkernel() {
|
|
Harald Hoyer |
811c04 |
}
|
|
Harald Hoyer |
811c04 |
for_each_host_dev_fs inst_fs
|
|
Harald Hoyer |
811c04 |
fi
|
|
Harald Hoyer |
811c04 |
- else
|
|
Harald Hoyer |
811c04 |
- hostonly='' instmods $drivers
|
|
Harald Hoyer |
811c04 |
- fi
|
|
Harald Hoyer |
811c04 |
-
|
|
Harald Hoyer |
811c04 |
- if [[ $add_drivers ]]; then
|
|
Harald Hoyer |
811c04 |
- hostonly='' instmods -c $add_drivers || return 1
|
|
Harald Hoyer |
811c04 |
- fi
|
|
Harald Hoyer |
811c04 |
- if [[ $filesystems ]]; then
|
|
Harald Hoyer |
811c04 |
- hostonly='' instmods -c $filesystems || return 1
|
|
Harald Hoyer |
811c04 |
- fi
|
|
Harald Hoyer |
811c04 |
-
|
|
Harald Hoyer |
811c04 |
}
|
|
Harald Hoyer |
811c04 |
|
|
Harald Hoyer |
811c04 |
install() {
|