[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [PATCH f17-branch 2/2] dracut/parse-kickstart: handle network --device=link (or none)



On Tue, Mar 27, 2012 at 07:49:24PM -0400, Will Woods wrote:

> -def ksnet_to_dracut(args, lineno, net):
> +def ksnet_to_dracut(args, lineno, net, bootdev=False):
>      '''Translate the kickstart network data into dracut network data.'''
>      line = []
> +    dev = net.device
>      if net.bootProto in (BOOTPROTO_DHCP, BOOTPROTO_BOOTP):
> -        line.append("ip=%s:dhcp" % net.device)
> +        line.append("ip=%s:dhcp" % dev if dev else "ip=dhcp")

I don't think that's what you meant to do. If dev is None you're going
to end up with:

ip=ip=dhcp

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)

Attachment: pgpfWkz9JtWmk.pgp
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]