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

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

 



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: pgpSw1o3lbBeY.pgp
Description: PGP signature

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux