Gentoo Logo
Gentoo Spaceship

Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-installer
Lists: gentoo-installer: < Prev By Thread Next > < Prev By Date Next >
To: gentoo-installer@g.o
From: Nathaniel McCallum <npmccallum@g.o>
Subject: Complex data types in InstallProfile
Date: Thu, 12 Feb 2004 16:04:39 -0500
I'm not sure exactly how we should handle complex data types.  esammer
mentionded that we should try and stay away from defining new classes
for specific data types.  however, that may complicate things even
more.  Here are some of my thoughts for non-class oriented complex data

{ <device1> : <partition table record (dict)>, <device2> : <partition
table record (dict)>, etc... }

'<device>' is a string that composes the 'major'. (ie. '/dev/hda')

Partition Table Record:
{ <minor> : <partition information (tuple)>,  <minor> : <partition
information (tuple)>, etc... }
minor is the number of the partition. (ie. '/dev/hda1' would be,
<device> == '/dev/hda' and <minor> == 1

Partition Information:
( <size in MB (int)>, <partition type (string)>, <mount point (string)>

Partition types consist of:
   'ext2', 'ext3', 'reiserfs', 'xfs', 'jfs', 'swap', 'extended', or
'nfs'.  More may be added later.

Mount point is where the partition/nfs-export should be mounted. (ie.
'/home' or '/usr/portage')
Mount point should not contain the liveCD prefix point (ie.
'/mnt/gentoo/home' is not correct)

{ <device1> : <device info (tuple)>, <device2> : <device info (tuple),
etc... }

'<device>' is a string with the device name, ie. 'eth0'

Device Information:
( <static ip (bool)>, <PRE ip address (string)>, <PRE netmask (string)>,
<PRE broadcast (string)>, <PRE gateway (string)>, <POST ip address
(string)>, <POST netmask (string)>, <POST broadcast (string)>, <POST
gateway (string)>, <load at boot (bool)>, <(POST) alias (tuple)> )

<static ip> is a bool to say whether or not the device uses a static ip
address.  False would default to DHCP.

What do you guys think?

signature.asc (This is a digitally signed message part)
Lists: gentoo-installer: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Any build available
Next by thread:
Status update
Previous by date:
Re: Any build available
Next by date:
Status update

Updated Jun 17, 2009

Summary: Archive of the gentoo-installer mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.