1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
|
<? include /webgli/top.pyhtml ?>
<?
print "<pre>Look carefully at the following settings to check for mistakes.\nThese are the installation settings you have chosen:\n\n"
#Partitioning
print "Partitioning: \n Key: Minor, Pri/Ext, Filesystem, MkfsOpts, Mountpoint, MountOpts, Size.\n"
devices = shared_info.install_profile.get_partition_tables()
drives = devices.keys()
drives.sort()
for drive in drives:
print " Drive: " + drive + devices[drive].get_model() + "\n"
partlist = devices[drive].get_ordered_partition_list()
tmpparts = devices[drive] #.get_partitions()
for part in partlist:
tmppart = tmpparts[part]
entry = " "
if tmppart.get_type() == "free":
#partschoice = "New"
entry += _(u" - Unallocated space (")
if tmppart.is_logical():
entry += _(u"logical, ")
entry += str(tmppart.get_mb()) + "MB)"
elif tmppart.get_type() == "extended":
entry += str(int(tmppart.get_minor()))
entry += _(u" - Extended Partition (") + str(tmppart.get_mb()) + "MB)"
else:
entry += str(int(tmppart.get_minor())) + " - "
if tmppart.is_logical():
entry += _(u"Logical (")
else:
entry += _(u"Primary (")
entry += tmppart.get_type() + ", "
entry += (tmppart.get_mkfsopts() or "none") + ", "
entry += (tmppart.get_mountpoint() or "none") + ", "
entry += (tmppart.get_mountopts() or "none") + ", "
entry += str(tmppart.get_mb()) + "MB)"
print entry + "\n"
#Network Mounts:
network_mounts = copy.deepcopy(shared_info.install_profile.get_network_mounts())
print "\nNetwork Mounts: \n"
for mount in network_mounts:
print " "+mount['host']+":"+mount['export']+"\n"
#Install Stage:
print "\nInstall Stage: " + str(shared_info.install_profile.get_install_stage()) + "\n"
if shared_info.install_profile.get_dynamic_stage3():
print " Tarball will be generated on the fly from the CD.\n"
else:
print " Tarball URI: " + shared_info.install_profile.get_stage_tarball_uri() + "\n"
#Portage Tree Sync Type:
print "\nPortage Tree Sync Type: " + shared_info.install_profile.get_portage_tree_sync_type() + "\n"
if shared_info.install_profile.get_portage_tree_sync_type() == "snapshot":
print " Portage snapshot URI: " + shared_info.install_profile.get_portage_tree_snapshot_uri() + "\n"
#Kernel Settings:
print "\nKernel Settings:\n"
print " Kernel Sources: " + shared_info.install_profile.get_kernel_source_pkg() + "\n"
if shared_info.install_profile.get_kernel_source_pkg() != "livecd-kernel":
print " Kernel Build Method: " + shared_info.install_profile.get_kernel_build_method() + "\n"
if shared_info.install_profile.get_kernel_build_method() == "genkernel":
print " Kernel Bootsplash Option: " + str(shared_info.install_profile.get_kernel_bootsplash()) + "\n"
if shared_info.install_profile.get_kernel_config_uri():
print " Kernel Configuration URI: " + shared_info.install_profile.get_kernel_config_uri() + "\n"
#Bootloader Settings:
print "\nBootloader Settings:\n"
print " Bootloader package: " + shared_info.install_profile.get_boot_loader_pkg() + "\n"
if shared_info.install_profile.get_boot_loader_pkg() != "none":
print " Install bootloader to MBR: " + str(shared_info.install_profile.get_boot_loader_mbr()) + "\n"
print " Bootloader kernel arguments: " +shared_info.install_profile.get_bootloader_kernel_args() + "\n"
#Timezone:
print "\nTimezone: " + shared_info.install_profile.get_time_zone() + "\n"
#Networking Settings:
print "\nNetworking Settings: \n"
interfaces = shared_info.install_profile.get_network_interfaces()
for iface in interfaces:
if interfaces[iface][0] == 'dhcp':
print " " + iface + _(u": Settings: DHCP. Options: ") + interfaces[iface][1] + "\n"
else:
print " " + iface + _(u"IP: ") + interfaces[iface][0] + _(u" Broadcast: ") + interfaces[iface][1] + _(u" Netmask: ") + interfaces[iface][2] + "\n"
default_gateway = shared_info.install_profile.get_default_gateway()
if default_gateway:
print " Default Gateway: " + default_gateway[0] + "/" + default_gateway[1] + "\n"
print " Hostname: " + shared_info.install_profile.get_hostname() + "\n"
if shared_info.install_profile.get_domainname():
print " Domainname: " +shared_info.install_profile.get_domainname() + "\n"
if shared_info.install_profile.get_nisdomainname():
print " NIS Domainname: " +shared_info.install_profile.get_nisdomainname() + "\n"
if shared_info.install_profile.get_dns_servers():
for dns_server in shared_info.install_profile.get_dns_servers():
print " DNS Server: " +dns_server + "\n"
if shared_info.install_profile.get_http_proxy():
print " HTTP Proxy: " +shared_info.install_profile.get_http_proxy() + "\n"
if shared_info.install_profile.get_ftp_proxy():
print " FTP Proxy: " +shared_info.install_profile.get_ftp_proxy() + "\n"
if shared_info.install_profile.get_rsync_proxy():
print " RSYNC Proxy: " +shared_info.install_profile.get_rsync_proxy() + "\n"
#Cron Daemon:
print "\nCron Daemon: " + shared_info.install_profile.get_cron_daemon_pkg() + "\n"
#Logger:
print "\nLogging Daemon: " + shared_info.install_profile.get_logging_daemon_pkg() + "\n"
#Extra packages:
if shared_info.install_profile.get_install_packages():
install_packages = shared_info.install_profile.get_install_packages()
else:
install_packages = []
print "\nExtra Packages: "
for package in install_packages:
print package + " "
print "\n"
#Services:
if shared_info.install_profile.get_services():
services = shared_info.install_profile.get_services()
else:
services = []
print "\nAdditional Services: "
for service in services:
print service + " "
print "\n"
#Other Configuration Settings (rc.conf):
#Make.conf Settings:
print "\nConfiguration Files Settings:\n"
etc_files = shared_info.install_profile.get_etc_files()
for etc_file in etc_files:
print " File:" + etc_file + "\n"
if isinstance(etc_files[etc_file], dict):
for name in etc_files[etc_file]:
print " Variable: " + name + " Value: " + etc_files[etc_file][name] + "\n"
else:
for entry in etc_files[etc_file]:
print " Value: "+ entry + "\n"
#Additional Users:
print "\nAdditional Users:\n"
users = {}
for user in shared_info.install_profile.get_users():
users[user[0]] = (user[0], user[1], user[2], user[3], user[4], user[5], user[6])
for user in users:
print " Username: " + user
print "\n Group Membership: " + ",".join(users[user][2])
print "\n Shell: " + users[user][3]
print "\n Home Directory: " + users[user][4]
if users[user][5]:
print "\n User Id: " + users[user][5]
if users[user][6]:
print "\n User Comment: " + users[user][6]
print "</pre>"
?>
<? include /webgli/bottom.pyhtml ?>
|