In Red Hat Enterprise Linux 6.5, `anaconda` can not get bond created correctly if mentioned in %pre script and used with %include macro
Issue
- The bonding was enabled in Red Hat Enterprise Linux 6.4 and the bug was closed with an errata with Red Hat Enterprise Linux 6.5 release.
- But
anacondacan't create some bonds as expected. Some kickstarts work whereas some doesn't. - non-working kickstart example.
install
text
cdrom
lang en_US
keyboard us
zerombr
%include /tmp/buildnet
bootloader --location mbr
timezone America/Denver
auth --enablemd5 --enableshadow
rootpw redhat
selinux --disabled
firewall --disabled
skipx
clearpart --all --initlabel
reboot
part /boot --fstype=ext3 --size=200
part pv.01 --size=1000 --grow
part swap --size=1000 --fstype=swap
volgroup myvg pv.01
logvol / --vgname=myvg --name=rootvol --size=1000 --grow
%packages
@base
%pre
echo "Configuring net with provided parameters"
cat << EOF > /tmp/buildnet
network --onboot=yes --activate --device=bond0 --bootproto=dhcp --noipv6 --bondopts=mode=802.3ad,miimon=100,xmit_hash_policy=layer2+3,lacp_rate=fast --bondslaves eth0,eth1
EOF
Environment
- Red Hat Enterprise Linux 6.5
- anaconda/kickstart/bonding
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.