* Installing an OS with VLAN enabled to an ISCSI LUN (from ibft)
@ 2014-06-10 15:35 Praveen_Paladugu-DYMqY+WieiM
[not found] ` <ABF506AF5815F54BB6579628C0CD9F9956345880E3-aIqoxSDCDny0d/9xeFN5lgVY21JRvFwKV6yJEvX+wlw@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Praveen_Paladugu-DYMqY+WieiM @ 2014-06-10 15:35 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA
When installing OS to a VLAN enabled iscsi LUN (extracted from iBFT), "/tmp/net.{xyz}.has_ibft_config" is not being set properly.
Then anaconda installer requires 'BOOTPROTO="ibft"' populated in ifcfg of the vlan interface (ex: ibft0.20), for it to properly populate the kernel parameters post installation. The setting 'BOOTPROTO="ibft"' is populated by write-ifcfg.sh script only if the corresponding interface has a file /tmp/net.{xyz}.has_inft_config
To get around this issue, in ibft_to_cmdline() function in net-lib.sh file, I made the following changes to populate the has_ibft_config file for the vlan interface(ex: ibft0.20):
diff -up dracut-033/modules.d/40network/net-lib.sh.old dracut-033/modules.d/40network/net-lib.sh
--- dracut-033/modules.d/40network/net-lib.sh.old 2014-06-10 10:21:32.326572725 -0500
+++ dracut-033/modules.d/40network/net-lib.sh 2014-06-10 10:24:28.523422425 -0500
@@ -248,15 +248,19 @@ ibft_to_cmdline() {
case "$vlan" in
[0-9]*)
echo "vlan=$dev.$vlan:$dev"
+ echo $mac > /tmp/net.${dev}.${vlan}.has_ibft_config
;;
*)
echo "vlan=$vlan:$dev"
+ echo $mac > /tmp/net.${dev}.has_ibft_config
;;
esac
fi
+ else
+ echo $mac > /tmp/net.${dev}.has_ibft_config
+
fi
- echo $mac > /tmp/net.${dev}.has_ibft_config
done
) >> /etc/cmdline.d/40-ibft.conf
}
Thank you
Praveen K Paladugu
Dell Linux Engineering
^ permalink raw reply [flat|nested] 5+ messages in thread[parent not found: <ABF506AF5815F54BB6579628C0CD9F9956345880E3-aIqoxSDCDny0d/9xeFN5lgVY21JRvFwKV6yJEvX+wlw@public.gmane.org>]
* RE: Installing an OS with VLAN enabled to an ISCSI LUN (from ibft) [not found] ` <ABF506AF5815F54BB6579628C0CD9F9956345880E3-aIqoxSDCDny0d/9xeFN5lgVY21JRvFwKV6yJEvX+wlw@public.gmane.org> @ 2014-06-18 15:21 ` Praveen_Paladugu-DYMqY+WieiM 2014-07-03 12:17 ` Harald Hoyer 1 sibling, 0 replies; 5+ messages in thread From: Praveen_Paladugu-DYMqY+WieiM @ 2014-06-18 15:21 UTC (permalink / raw) To: initramfs-u79uwXL29TY76Z2rM5mHXA Any comments here? Thank you Praveen K Paladugu Dell Linux Engineering ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Installing an OS with VLAN enabled to an ISCSI LUN (from ibft) [not found] ` <ABF506AF5815F54BB6579628C0CD9F9956345880E3-aIqoxSDCDny0d/9xeFN5lgVY21JRvFwKV6yJEvX+wlw@public.gmane.org> 2014-06-18 15:21 ` Praveen_Paladugu-DYMqY+WieiM @ 2014-07-03 12:17 ` Harald Hoyer [not found] ` <53B549C5.50500-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 1 sibling, 1 reply; 5+ messages in thread From: Harald Hoyer @ 2014-07-03 12:17 UTC (permalink / raw) To: Praveen_Paladugu-DYMqY+WieiM, initramfs-u79uwXL29TY76Z2rM5mHXA On 10.06.2014 17:35, Praveen_Paladugu-DYMqY+WieiM@public.gmane.org wrote: > > When installing OS to a VLAN enabled iscsi LUN (extracted from iBFT), "/tmp/net.{xyz}.has_ibft_config" is not being set properly. > > Then anaconda installer requires 'BOOTPROTO="ibft"' populated in ifcfg of the vlan interface (ex: ibft0.20), for it to properly populate the kernel parameters post installation. The setting 'BOOTPROTO="ibft"' is populated by write-ifcfg.sh script only if the corresponding interface has a file /tmp/net.{xyz}.has_inft_config > > > To get around this issue, in ibft_to_cmdline() function in net-lib.sh file, I made the following changes to populate the has_ibft_config file for the vlan interface(ex: ibft0.20): > > diff -up dracut-033/modules.d/40network/net-lib.sh.old dracut-033/modules.d/40network/net-lib.sh > --- dracut-033/modules.d/40network/net-lib.sh.old 2014-06-10 10:21:32.326572725 -0500 > +++ dracut-033/modules.d/40network/net-lib.sh 2014-06-10 10:24:28.523422425 -0500 > @@ -248,15 +248,19 @@ ibft_to_cmdline() { > case "$vlan" in > [0-9]*) > echo "vlan=$dev.$vlan:$dev" > + echo $mac > /tmp/net.${dev}.${vlan}.has_ibft_config > ;; > *) > echo "vlan=$vlan:$dev" > + echo $mac > /tmp/net.${dev}.has_ibft_config shouldn't that be: echo $mac > /tmp/net.${vlan}.has_ibft_config > ;; > esac > fi > + else > + echo $mac > /tmp/net.${dev}.has_ibft_config > + > fi > > - echo $mac > /tmp/net.${dev}.has_ibft_config what if vlan==0? I would not do this hunk, but only the first one. ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <53B549C5.50500-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* RE: Installing an OS with VLAN enabled to an ISCSI LUN (from ibft) [not found] ` <53B549C5.50500-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> @ 2014-07-07 20:34 ` Praveen_Paladugu-DYMqY+WieiM [not found] ` <ABF506AF5815F54BB6579628C0CD9F995687F54356-aIqoxSDCDny0d/9xeFN5lgVY21JRvFwKV6yJEvX+wlw@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Praveen_Paladugu-DYMqY+WieiM @ 2014-07-07 20:34 UTC (permalink / raw) To: harald-H+wXaHxf7aLQT0dZR+AlfA, initramfs-u79uwXL29TY76Z2rM5mHXA With the current version of Dracut, the below command for all the cases: with vlan populated/not, numerical/not, zero/non-zero. echo $mac > /tmp/net.${dev}.has_ibft_config The intent of the patch was to run the below command for all the cases, except when there is a valid numerical vlan detected. echo $mac > /tmp/net.${vlan}.has_ibft_config. As long as that happens, I am fine. Not sure how/why vlan 0 has to be handled differently. Thank you Praveen K Paladugu Dell Linux Engineering ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <ABF506AF5815F54BB6579628C0CD9F995687F54356-aIqoxSDCDny0d/9xeFN5lgVY21JRvFwKV6yJEvX+wlw@public.gmane.org>]
* RE: Installing an OS with VLAN enabled to an ISCSI LUN (from ibft) [not found] ` <ABF506AF5815F54BB6579628C0CD9F995687F54356-aIqoxSDCDny0d/9xeFN5lgVY21JRvFwKV6yJEvX+wlw@public.gmane.org> @ 2014-07-18 16:04 ` Praveen_Paladugu-DYMqY+WieiM 0 siblings, 0 replies; 5+ messages in thread From: Praveen_Paladugu-DYMqY+WieiM @ 2014-07-18 16:04 UTC (permalink / raw) To: harald-H+wXaHxf7aLQT0dZR+AlfA, initramfs-u79uwXL29TY76Z2rM5mHXA Harald, This is to confirm the patch https://github.com/haraldh/dracut/commit/f4eb0d98048d51a0782d4a7137f699de174a65e4 works for me. Thanks for picking it up. Thank you Praveen K Paladugu Dell Linux Engineering ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-07-18 16:04 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-10 15:35 Installing an OS with VLAN enabled to an ISCSI LUN (from ibft) Praveen_Paladugu-DYMqY+WieiM
[not found] ` <ABF506AF5815F54BB6579628C0CD9F9956345880E3-aIqoxSDCDny0d/9xeFN5lgVY21JRvFwKV6yJEvX+wlw@public.gmane.org>
2014-06-18 15:21 ` Praveen_Paladugu-DYMqY+WieiM
2014-07-03 12:17 ` Harald Hoyer
[not found] ` <53B549C5.50500-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2014-07-07 20:34 ` Praveen_Paladugu-DYMqY+WieiM
[not found] ` <ABF506AF5815F54BB6579628C0CD9F995687F54356-aIqoxSDCDny0d/9xeFN5lgVY21JRvFwKV6yJEvX+wlw@public.gmane.org>
2014-07-18 16:04 ` Praveen_Paladugu-DYMqY+WieiM
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.