Accepting request 356300 from home:favogt:branches:Base:System

Modify 0017-45ifcfg-use-distro-specific-scripts.patch:
 - Also revert upstream commit f34e1d6b to not forcibly
   include network and ifcfg modules (bsc#960669)
Refresh:
  - 0094-Implement-shortcut-ip-ifname-static-for-static-confi.patch
  - 0132-40network-fixup-static-network-configuration.patch
  - 0142-40network-Don-t-report-error-for-etc-sysconfig-netwo.patch
  - 0402-driver-fail-summary.patch
Add 0209-fix_modules_load_d_hostonly.patch:
  - Fix modules-load.d with hostonly (boo#962224)

OBS-URL: https://build.opensuse.org/request/show/356300
OBS-URL: https://build.opensuse.org/package/show/Base:System/dracut?expand=0&rev=248
This commit is contained in:
Thomas Renninger 2016-01-27 16:45:27 +00:00 committed by Git OBS Bridge
parent a171f558e5
commit 233f49d9a7
8 changed files with 88 additions and 18 deletions

View File

@ -9,12 +9,17 @@ Detect the system flavor and write the ifcfg files accordingly.
each upgrade. Handle this in the spec file and a separate each upgrade. Handle this in the spec file and a separate
write-ifcfg-suse.sh source file write-ifcfg-suse.sh source file
- Also revert upstream commit f34e1d6, to not forcibly include 45ifcfg
and thus the whole network stack (bsc#960669)
Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Hannes Reinecke <hare@suse.de>
Modified-by: Thomas Rennigner <trenn@suse.de> Modified-by: Thomas Rennigner <trenn@suse.de>
Modified-by: Fabian Vogt <fvogt@suse.com>
--- ---
modules.d/40network/ifup.sh | 1 + modules.d/40network/ifup.sh | 1 +
modules.d/45ifcfg/module-setup.sh | 8 +++++++- modules.d/40network/module-setup.sh | 7 +++++++
2 files changed, 8 insertions(+), 1 deletion(-) modules.d/45ifcfg/module-setup.sh | 1 -
3 files changed, 8 insertions(+), 1 deletion(-)
Index: dracut-044/modules.d/40network/ifup.sh Index: dracut-044/modules.d/40network/ifup.sh
=================================================================== ===================================================================
@ -32,18 +37,29 @@ Index: dracut-044/modules.d/45ifcfg/module-setup.sh
=================================================================== ===================================================================
--- dracut-044.orig/modules.d/45ifcfg/module-setup.sh --- dracut-044.orig/modules.d/45ifcfg/module-setup.sh
+++ dracut-044/modules.d/45ifcfg/module-setup.sh +++ dracut-044/modules.d/45ifcfg/module-setup.sh
@@ -2,7 +2,13 @@ @@ -2,7 +2,6 @@
# called by dracut # called by dracut
check() { check() {
- [[ -d /etc/sysconfig/network-scripts ]] && return 0 - [[ -d /etc/sysconfig/network-scripts ]] && return 0
+ local link=$(readlink $moddir/write-ifcfg.sh)
+ [[ "$link" = "write-ifcfg-suse.sh" ]] && \
+ [[ -d /etc/sysconfig/network ]] && \
+ return 0
+ [[ "$link" = "write-ifcfg-redhat.sh" ]] && \
+ [[ -d /etc/sysconfig/network-scripts ]] && \
+ return 0
return 255 return 255
} }
Index: dracut-044/modules.d/40network/module-setup.sh
===================================================================
--- dracut-044.orig/modules.d/40network/module-setup.sh
+++ dracut-044/modules.d/40network/module-setup.sh
@@ -15,6 +15,13 @@ check() {
# called by dracut
depends() {
echo "kernel-network-modules"
+ local link=$(readlink $moddir/write-ifcfg.sh)
+ [[ "$link" = "write-ifcfg-suse.sh" ]] && \
+ [[ -d /etc/sysconfig/network ]] && \
+ echo "ifcfg"
+ [[ "$link" = "write-ifcfg-redhat.sh" ]] && \
+ [[ -d /etc/sysconfig/network-scripts ]] && \
+ echo "ifcfg"
return 0
}

View File

@ -51,7 +51,7 @@ Index: dracut-044/modules.d/40network/module-setup.sh
=================================================================== ===================================================================
--- dracut-044.orig/modules.d/40network/module-setup.sh --- dracut-044.orig/modules.d/40network/module-setup.sh
+++ dracut-044/modules.d/40network/module-setup.sh +++ dracut-044/modules.d/40network/module-setup.sh
@@ -51,6 +51,10 @@ install() { @@ -58,6 +58,10 @@ install() {
_arch=$(uname -m) _arch=$(uname -m)

View File

@ -46,7 +46,7 @@ Index: dracut-044/modules.d/40network/module-setup.sh
=================================================================== ===================================================================
--- dracut-044.orig/modules.d/40network/module-setup.sh --- dracut-044.orig/modules.d/40network/module-setup.sh
+++ dracut-044/modules.d/40network/module-setup.sh +++ dracut-044/modules.d/40network/module-setup.sh
@@ -53,6 +53,8 @@ install() { @@ -60,6 +60,8 @@ install() {
[[ $hostonly ]] && { [[ $hostonly ]] && {
inst_multiple /etc/sysconfig/network/ifcfg-* inst_multiple /etc/sysconfig/network/ifcfg-*

View File

@ -9,11 +9,11 @@ Signed-off-by: Julian Wolf <juwolf@suse.de>
modules.d/40network/module-setup.sh | 2 +- modules.d/40network/module-setup.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-) 1 file changed, 1 insertion(+), 1 deletion(-)
Index: dracut-042/modules.d/40network/module-setup.sh Index: dracut-044/modules.d/40network/module-setup.sh
=================================================================== ===================================================================
--- dracut-042.orig/modules.d/40network/module-setup.sh 2015-06-24 18:02:27.950430272 +0200 --- dracut-044.orig/modules.d/40network/module-setup.sh
+++ dracut-042/modules.d/40network/module-setup.sh 2015-06-24 18:02:28.582466253 +0200 +++ dracut-044/modules.d/40network/module-setup.sh
@@ -53,7 +53,7 @@ install() { @@ -60,7 +60,7 @@ install() {
[[ $hostonly ]] && { [[ $hostonly ]] && {
inst_multiple /etc/sysconfig/network/ifcfg-* inst_multiple /etc/sysconfig/network/ifcfg-*

View File

@ -0,0 +1,34 @@
From: Fabian Vogt <fvogt@suse.com>
Subject: Fix loading of modules in modules-load.d
With hostonly enabled, only modules that are currently
loaded are included in the initrd. Modules which are
explicitly listed in modules-load.d do not need to
be filtered that way. Fix for boo#962224.
---
modules.d/00systemd/module-setup.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: dracut-044/modules.d/00systemd/module-setup.sh
===================================================================
--- dracut-044.orig/modules.d/00systemd/module-setup.sh
+++ dracut-044/modules.d/00systemd/module-setup.sh
@@ -154,7 +154,7 @@ install() {
}
_mods=$(modules_load_get /usr/lib/modules-load.d)
- [[ $_mods ]] && instmods $_mods
+ [[ $_mods ]] && hostonly='' instmods $_mods
if [[ $hostonly ]]; then
inst_multiple -H -o \
@@ -169,7 +169,7 @@ install() {
/etc/sysctl.conf
_mods=$(modules_load_get /etc/modules-load.d)
- [[ $_mods ]] && instmods $_mods
+ [[ $_mods ]] && hostonly='' instmods $_mods
fi
if ! [[ -e "$initdir/etc/machine-id" ]]; then

View File

@ -76,7 +76,7 @@ Index: dracut-044/dracut.sh
rearrange_params "$@" rearrange_params "$@"
eval set -- "$TEMP" eval set -- "$TEMP"
@@ -1740,6 +1746,15 @@ if ! ( @@ -1761,6 +1767,15 @@ if ! (
exit 1 exit 1
fi fi

View File

@ -1,3 +1,21 @@
-------------------------------------------------------------------
Wed Jan 27 09:19:18 UTC 2016 - fvogt@suse.com
- Modify 0017-45ifcfg-use-distro-specific-scripts.patch:
- Also revert upstream commit f34e1d6b to not forcibly
include network and ifcfg modules (bsc#960669)
- Refresh:
- 0094-Implement-shortcut-ip-ifname-static-for-static-confi.patch
- 0132-40network-fixup-static-network-configuration.patch
- 0142-40network-Don-t-report-error-for-etc-sysconfig-netwo.patch
- 0402-driver-fail-summary.patch
-------------------------------------------------------------------
Wed Jan 27 07:47:55 UTC 2016 - fvogt@suse.com
- Add 0209-fix_modules_load_d_hostonly.patch:
- Fix modules-load.d with hostonly (boo#962224)
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jan 26 11:08:04 UTC 2016 - fvogt@suse.com Tue Jan 26 11:08:04 UTC 2016 - fvogt@suse.com

View File

@ -115,6 +115,7 @@ Patch205: 0205-mdraid_ignore_hostonly.patch
Patch206: 0206-nfs_dns_alias.patch Patch206: 0206-nfs_dns_alias.patch
Patch207: 0207-handle_module_aliases.patch Patch207: 0207-handle_module_aliases.patch
Patch208: 0208-no_forced_virtnet.patch Patch208: 0208-no_forced_virtnet.patch
Patch209: 0209-fix_modules_load_d_hostonly.patch
## SUSE-specific fixes ## SUSE-specific fixes
Patch300: 0300-dracut_dont_use_dpkg_defaults_on_SUSE.patch Patch300: 0300-dracut_dont_use_dpkg_defaults_on_SUSE.patch
@ -264,6 +265,7 @@ chmod a+x modules.d/91zipl/install_zipl_cmdline.sh
%patch206 -p1 %patch206 -p1
%patch207 -p1 %patch207 -p1
%patch208 -p1 %patch208 -p1
%patch209 -p1
%patch300 -p1 %patch300 -p1
%patch301 -p1 %patch301 -p1