On 10.06.2014 17:35, [email protected] 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.
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to