Re: [PATCH] Add a dracutSetupString method to network.py

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

 



looks good.
On Mon, Aug 03, 2009 at 07:12:19PM +0200, Hans de Goede wrote:
> Add a dracutSetupString method to network.py, this can be used to
> ask the Network class to get a dracut setup string to setup the interface
> needed for a connection to a certain host.
> 
> This patch also adds code to booty to use this to get kernel cmdline dracut
> setup commands for any NIC's needed to connect to devices needed for /
> ---
>  booty/__init__.py       |   16 ++++++++--------
>  booty/alpha.py          |    4 ++--
>  booty/bootloaderInfo.py |   15 ++++++++++-----
>  booty/ia64.py           |    4 ++--
>  booty/ppc.py            |    4 ++--
>  booty/s390.py           |    4 ++--
>  booty/sparc.py          |    4 ++--
>  booty/x86.py            |    6 +++---
>  instdata.py             |    2 +-
>  network.py              |   34 ++++++++++++++++++++++++++++++++++
>  10 files changed, 66 insertions(+), 27 deletions(-)
> 
> diff --git a/booty/__init__.py b/booty/__init__.py
> index 9ee6398..8f2d6a7 100644
> --- a/booty/__init__.py
> +++ b/booty/__init__.py
> @@ -28,25 +28,25 @@ class BootyNoKernelWarning:
>          return self.value
>  
>  # return instance of the appropriate bootloader for our arch
> -def getBootloader(storage):
...
> +        ip = "ip=%s::%s:%s:%s:none" % (dev.get('ipaddr'),
> +             dev.get('GATEWAY', ''), dev.get('netmask'), hostname,
> +             routeInfo[2])
> -- 
> 1.6.2.2
> 
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list

-- 
Joel Andres Granados
Brno, Czech Republic, Red Hat.

Attachment: pgpbMmJnOqCNY.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