Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 822886 Details for
Bug 979966
kickstart snippet post_install_network_config creates deprecated modprobe.conf on RHEL6
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh90 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
cobbler-modprobe-d.patch
cobbler-modprobe-d.patch (text/plain), 2.89 KB, created by
Michael Mráka
on 2013-11-12 12:06:20 UTC
(
hide
)
Description:
cobbler-modprobe-d.patch
Filename:
MIME Type:
Creator:
Michael Mráka
Created:
2013-11-12 12:06:20 UTC
Size:
2.89 KB
patch
obsolete
>--- a/snippets/post_install_network_config 2013-11-11 10:46:45.464341394 +0100 >+++ b/snippets/post_install_network_config 2013-11-12 12:13:34.578812084 +0100 >@@ -43,9 +43,13 @@ > ## setup bonding if we have to > ## if using bonding, must have an /ect/modpobe.conf file > #if $numbondingdevs > 0 >-touch "/etc/modprobe.conf" >-if [ -f "/etc/modprobe.conf" ]; then >- echo "options bonding max_bonds=$numbondingdevs" >> /etc/modprobe.conf >+MODPROBE_CONF="/etc/modprobe.conf" >+if [ -d "/etc/modprobe.d" ]; then >+ MODPROBE_CONF="/etc/modprobe.d/post_install_network_config.conf" >+fi >+touch "\$MODPROBE_CONF" >+if [ -f "\$MODPROBE_CONF" ]; then >+ echo "options bonding max_bonds=$numbondingdevs" >> \$MODPROBE_CONF > fi > #end if > ## ============================================================================= >@@ -134,13 +138,13 @@ > ## if this is a bonded interface, configure it in modprobe.conf > #if $bonding.lower() == "master" > #if $osversion == "rhel4" >-if [ -f "/etc/modprobe.conf" ]; then >- echo "install $iname /sbin/modprobe bonding -o $iname $bonding_opts" >> /etc/modprobe.conf.cobbler >+if [ -f "\$MODPROBE_CONF" ]; then >+ echo "install $iname /sbin/modprobe bonding -o $iname $bonding_opts" >> \$MODPROBE_CONF.cobbler > fi > #else > ## Add required entry to modprobe.conf >-if [ -f "/etc/modprobe.conf" ]; then >- echo "alias $iname bonding" >> /etc/modprobe.conf.cobbler >+if [ -f "\$MODPROBE_CONF" ]; then >+ echo "alias $iname bonding" >> \$MODPROBE_CONF.cobbler > fi > #end if > #end if >@@ -150,11 +154,11 @@ > IFNAME=\$(ip -o link | grep -i '$mac' | sed -e 's/^[0-9]*: //' -e 's/:.*//') > ## Rename this interface in modprobe.conf > ## FIXME: if both interfaces startwith eth this is wrong >-if [ -f "/etc/modprobe.conf" ] && [ \$IFNAME ]; then >- grep \$IFNAME /etc/modprobe.conf | sed "s/\$IFNAME/$iname/" >> /etc/modprobe.conf.cobbler >- grep -v \$IFNAME /etc/modprobe.conf >> /etc/modprobe.conf.new >- rm -f /etc/modprobe.conf >- mv /etc/modprobe.conf.new /etc/modprobe.conf >+if [ -f "\$MODPROBE_CONF" ] && [ \$IFNAME ]; then >+ grep \$IFNAME \$MODPROBE_CONF | sed "s/\$IFNAME/$iname/" >> \$MODPROBE_CONF.cobbler >+ grep -v \$IFNAME \$MODPROBE_CONF >> \$MODPROBE_CONF.new >+ rm -f \$MODPROBE_CONF >+ mv \$MODPROBE_CONF.new \$MODPROBE_CONF > fi > echo "DEVICE=$iname" > $devfile > echo "HWADDR=$mac" >> $devfile >@@ -348,9 +352,9 @@ > rm -f /etc/sysconfig/network-scripts/ifcfg-* > mv /etc/sysconfig/network-scripts/cobbler/* /etc/sysconfig/network-scripts/ > rm -r /etc/sysconfig/network-scripts/cobbler >-if [ -f "/etc/modprobe.conf" ]; then >-cat /etc/modprobe.conf.cobbler >> /etc/modprobe.conf >-rm -f /etc/modprobe.conf.cobbler >+if [ -f "\$MODPROBE_CONF" ]; then >+cat \$MODPROBE_CONF.cobbler >> \$MODPROBE_CONF >+rm -f \$MODPROBE_CONF.cobbler > fi > #end if > # End post_install_network_config generated code
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 979966
: 822886