summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-02-05 18:49:52 +0000
committerMatt Wilson <msw@redhat.com>2000-02-05 18:49:52 +0000
commitf299d4c10cb9aeecf2d96635530b3873d42df8e3 (patch)
treedbeebb5a42d3841f1ab562417b7f8f98683c134e
parent27537c495d5275f6cec9ac5ba36d61c2ac4ce22d (diff)
downloadanaconda-f299d4c10cb9aeecf2d96635530b3873d42df8e3.tar.gz
anaconda-f299d4c10cb9aeecf2d96635530b3873d42df8e3.tar.xz
anaconda-f299d4c10cb9aeecf2d96635530b3873d42df8e3.zip
massive silo change over to new lilo style
-rw-r--r--iw/silo.py22
-rw-r--r--po/anaconda.pot307
-rw-r--r--silo.py186
-rw-r--r--text.py4
-rw-r--r--textw/silo.py31
-rw-r--r--todo.py3
6 files changed, 289 insertions, 264 deletions
diff --git a/iw/silo.py b/iw/silo.py
index af46134ff..0139ee5ed 100644
--- a/iw/silo.py
+++ b/iw/silo.py
@@ -39,15 +39,15 @@ class SiloWindow (InstallWindow):
self.todo.bootdisk = 0
if self.silo.get_active ():
- self.todo.setLiloLocation (None)
+ self.todo.silo.setDevice(None)
else:
if self.mbr.get_active ():
- self.todo.setLiloLocation ("mbr")
+ self.todo.silo.setDevice("mbr")
else:
- self.todo.setLiloLocation ("partition")
+ self.todo.silo.setDevice("partition")
- self.todo.liloAppend = self.appendEntry.get_text()
- self.todo.setLiloImages(self.images)
+ self.todo.silo.setAppend(self.appendEntry.get_text())
+ self.todo.silo.setLiloImages(self.images)
linuxAlias = 0
bootDevice = 0
@@ -146,9 +146,9 @@ class SiloWindow (InstallWindow):
(mount, dev, fstype, format, size) = self.todo.fstab.mountList()[0]
if mount != '/': return None
- (bootpart, boothd, mbrpart) = self.todo.silo.getSiloOptions()
- self.bootpart = bootpart
- self.mbrpart = mbrpart
+
+ self.bootpart = self.todo.fstab.getBootDevice()
+ self.mbrpart = self.todo.fstab.getMbrDevice()
format = "/dev/%s"
@@ -185,7 +185,7 @@ class SiloWindow (InstallWindow):
self.radioBox.attach(tempBox, 0, 2, 4, 5)
self.mbr.connect("toggled", self.mbr_toggled)
- if self.todo.silo.getSiloMbrDefault() == 'mbr':
+ if self.todo.silo.getSiloMbrDefault(self.todo.fstab) == 'mbr':
self.mbr.set_active (TRUE)
else:
part.set_active (TRUE);
@@ -197,8 +197,8 @@ class SiloWindow (InstallWindow):
label = GtkLabel(_("Kernel parameters") + ":")
label.set_alignment(0.0, 0.5)
self.appendEntry = GtkEntry(15)
- if self.todo.liloAppend:
- self.appendEntry.set_text(self.todo.liloAppend)
+ if self.todo.silo.getAppend():
+ self.appendEntry.set_text(self.todo.silo.getAppend())
box = GtkHBox(FALSE, 5)
box.pack_start(label)
box.pack_start(self.appendEntry)
diff --git a/po/anaconda.pot b/po/anaconda.pot
index d5e349e4d..745699cb5 100644
--- a/po/anaconda.pot
+++ b/po/anaconda.pot
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2000-02-02 17:43-0500\n"
+"POT-Creation-Date: 2000-02-04 15:51-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -25,12 +25,13 @@ msgstr ""
#: ../fstab.py:245 ../fstab.py:322 ../fstab.py:456
#: ../libfdisk/newtfsedit.c:1541 ../loader/devices.c:178
-#: ../loader/devices.c:183 ../loader/loader.c:471 ../loader/loader.c:481
-#: ../loader/loader.c:696 ../loader/loader.c:748 ../loader/loader.c:905
-#: ../loader/loader.c:910 ../loader/loader.c:1665 ../loader/loader.c:1711
-#: ../loader/loader.c:1782 ../loader/urls.c:70 ../loader/urls.c:79
-#: ../loader/urls.c:86 ../loader/urls.c:223 ../loader/urls.c:228
-#: ../text.py:280 ../text.py:765 ../todo.py:328 ../todo.py:657 ../todo.py:688
+#: ../loader/devices.c:183 ../loader/lang.c:89 ../loader/loader.c:471
+#: ../loader/loader.c:481 ../loader/loader.c:696 ../loader/loader.c:748
+#: ../loader/loader.c:905 ../loader/loader.c:910 ../loader/loader.c:1683
+#: ../loader/loader.c:1729 ../loader/loader.c:1800 ../loader/urls.c:70
+#: ../loader/urls.c:79 ../loader/urls.c:86 ../loader/urls.c:223
+#: ../loader/urls.c:228 ../text.py:280 ../text.py:765 ../todo.py:330
+#: ../todo.py:659 ../todo.py:690
msgid "Error"
msgstr ""
@@ -43,7 +44,7 @@ msgstr ""
msgid "Error unmounting %s: %s"
msgstr ""
-#: ../fstab.py:345 ../todo.py:410
+#: ../fstab.py:345 ../todo.py:412
msgid "Creating"
msgstr ""
@@ -70,15 +71,15 @@ msgstr ""
msgid "Error mounting %s: %s"
msgstr ""
-#: ../gui.py:270 ../gui.py:516
+#: ../gui.py:275 ../gui.py:521
msgid "Next"
msgstr ""
-#: ../gui.py:271 ../gui.py:515 ../libfdisk/newtfsedit.c:1292
+#: ../gui.py:276 ../gui.py:520 ../libfdisk/newtfsedit.c:1292
#: ../libfdisk/newtfsedit.c:1300 ../loader/cdrom.c:34 ../loader/devices.c:67
-#: ../loader/devices.c:168 ../loader/devices.c:218 ../loader/lang.c:536
+#: ../loader/devices.c:168 ../loader/devices.c:245 ../loader/lang.c:548
#: ../loader/loader.c:255 ../loader/loader.c:603 ../loader/loader.c:639
-#: ../loader/loader.c:748 ../loader/loader.c:1139 ../loader/net.c:162
+#: ../loader/loader.c:748 ../loader/loader.c:1151 ../loader/net.c:162
#: ../loader/net.c:284 ../loader/urls.c:146 ../loader/urls.c:361 ../text.py:54
#: ../text.py:65 ../text.py:100 ../text.py:101 ../text.py:120 ../text.py:143
#: ../text.py:173 ../text.py:176 ../text.py:229 ../text.py:283 ../text.py:297
@@ -92,46 +93,46 @@ msgstr ""
#: ../textw/partitioning.py:23 ../textw/partitioning.py:63
#: ../textw/partitioning.py:214 ../textw/partitioning.py:263
#: ../textw/silo.py:26 ../textw/silo.py:87 ../textw/silo.py:186
-#: ../textw/timezone.py:66 ../textw/userauth.py:29 ../textw/userauth.py:145
-#: ../textw/userauth.py:176 ../textw/userauth.py:248
+#: ../textw/timezone.py:66 ../textw/userauth.py:30 ../textw/userauth.py:154
+#: ../textw/userauth.py:185 ../textw/userauth.py:257
msgid "Back"
msgstr ""
-#: ../gui.py:272 ../gui.py:520
+#: ../gui.py:277 ../gui.py:525
msgid "Show Help"
msgstr ""
-#: ../gui.py:273 ../gui.py:519
+#: ../gui.py:278 ../gui.py:524
msgid "Hide Help"
msgstr ""
-#: ../gui.py:274 ../gui.py:518
+#: ../gui.py:279 ../gui.py:523
msgid "Finish"
msgstr ""
-#: ../gui.py:277 ../gui.py:545
+#: ../gui.py:282 ../gui.py:550
msgid "Online Help"
msgstr ""
-#: ../gui.py:278 ../iw/language.py:10 ../text.py:59 ../text.py:1005
+#: ../gui.py:283 ../iw/language.py:10 ../text.py:59 ../text.py:1005
#: ../text.py:1034
msgid "Language Selection"
msgstr ""
-#: ../gui.py:482
+#: ../gui.py:487
msgid "Red Hat Linux Installer"
msgstr ""
-#: ../gui.py:486
+#: ../gui.py:491
msgid "Red Hat Linux Install Shell"
msgstr ""
-#: ../gui.py:497
+#: ../gui.py:502
#, c-format
msgid "Red Hat Linux Installer on %s"
msgstr ""
-#: ../gui.py:498
+#: ../gui.py:503
#, c-format
msgid "Red Hat Linux Install Shell on %s"
msgstr ""
@@ -204,29 +205,29 @@ msgid "What device is your mouse located on? %s %i"
msgstr ""
#: ../loader/cdrom.c:34 ../loader/devices.c:66 ../loader/devices.c:167
-#: ../loader/devices.c:178 ../loader/devices.c:183 ../loader/devices.c:218
+#: ../loader/devices.c:178 ../loader/devices.c:183 ../loader/devices.c:245
#: ../loader/kickstart.c:58 ../loader/kickstart.c:68 ../loader/kickstart.c:107
-#: ../loader/lang.c:269 ../loader/lang.c:536 ../loader/loader.c:255
-#: ../loader/loader.c:471 ../loader/loader.c:481 ../loader/loader.c:639
-#: ../loader/loader.c:696 ../loader/loader.c:748 ../loader/loader.c:905
-#: ../loader/loader.c:910 ../loader/loader.c:995 ../loader/loader.c:1139
-#: ../loader/loader.c:1665 ../loader/loader.c:1711 ../loader/loader.c:1774
-#: ../loader/loader.c:1782 ../loader/net.c:162 ../loader/net.c:284
-#: ../loader/net.c:560 ../loader/net.c:591 ../loader/urls.c:146
-#: ../loader/urls.c:223 ../loader/urls.c:228 ../loader/urls.c:361
-#: ../text.py:120 ../text.py:173 ../text.py:229 ../text.py:297 ../text.py:342
-#: ../text.py:359 ../text.py:451 ../text.py:471 ../text.py:502 ../text.py:585
-#: ../text.py:613 ../text.py:685 ../text.py:710 ../text.py:724 ../text.py:744
-#: ../text.py:757 ../text.py:769 ../text.py:964 ../text.py:968 ../text.py:1165
-#: ../textw/lilo.py:30 ../textw/lilo.py:87 ../textw/packages.py:20
-#: ../textw/packages.py:85 ../textw/packages.py:144
+#: ../loader/lang.c:89 ../loader/lang.c:277 ../loader/lang.c:548
+#: ../loader/loader.c:255 ../loader/loader.c:471 ../loader/loader.c:481
+#: ../loader/loader.c:639 ../loader/loader.c:696 ../loader/loader.c:748
+#: ../loader/loader.c:905 ../loader/loader.c:910 ../loader/loader.c:995
+#: ../loader/loader.c:1151 ../loader/loader.c:1683 ../loader/loader.c:1729
+#: ../loader/loader.c:1792 ../loader/loader.c:1800 ../loader/net.c:162
+#: ../loader/net.c:284 ../loader/net.c:560 ../loader/net.c:591
+#: ../loader/urls.c:146 ../loader/urls.c:223 ../loader/urls.c:228
+#: ../loader/urls.c:361 ../text.py:120 ../text.py:173 ../text.py:229
+#: ../text.py:297 ../text.py:342 ../text.py:359 ../text.py:451 ../text.py:471
+#: ../text.py:502 ../text.py:585 ../text.py:613 ../text.py:685 ../text.py:710
+#: ../text.py:724 ../text.py:744 ../text.py:757 ../text.py:769 ../text.py:964
+#: ../text.py:968 ../text.py:1165 ../textw/lilo.py:30 ../textw/lilo.py:87
+#: ../textw/packages.py:20 ../textw/packages.py:85 ../textw/packages.py:144
#: ../textw/partitioning.py:214 ../textw/partitioning.py:263
#: ../textw/partitioning.py:273 ../textw/partitioning.py:281
#: ../textw/silo.py:25 ../textw/silo.py:87 ../textw/timezone.py:66
-#: ../textw/userauth.py:29 ../textw/userauth.py:43 ../textw/userauth.py:48
-#: ../textw/userauth.py:81 ../textw/userauth.py:92 ../textw/userauth.py:98
-#: ../textw/userauth.py:106 ../textw/userauth.py:115 ../textw/userauth.py:176
-#: ../textw/userauth.py:248
+#: ../textw/userauth.py:30 ../textw/userauth.py:44 ../textw/userauth.py:49
+#: ../textw/userauth.py:82 ../textw/userauth.py:95 ../textw/userauth.py:101
+#: ../textw/userauth.py:107 ../textw/userauth.py:115 ../textw/userauth.py:124
+#: ../textw/userauth.py:185 ../textw/userauth.py:257
msgid "OK"
msgstr ""
@@ -352,8 +353,8 @@ msgstr ""
#: ../libfdisk/gnomefsedit.c:788 ../libfdisk/gnomefsedit.c:1770
#: ../libfdisk/gnomefsedit.c:2278 ../libfdisk/newtfsedit.c:463
#: ../libfdisk/newtfsedit.c:1497 ../loader/devices.c:168
-#: ../loader/loader.c:1774 ../text.py:359 ../text.py:361 ../textw/lilo.py:106
-#: ../textw/silo.py:124 ../textw/silo.py:142 ../textw/userauth.py:62
+#: ../loader/loader.c:1792 ../text.py:359 ../text.py:361 ../textw/lilo.py:106
+#: ../textw/silo.py:124 ../textw/silo.py:142 ../textw/userauth.py:63
msgid "Cancel"
msgstr ""
@@ -575,11 +576,11 @@ msgstr ""
msgid "Time Zone Setup"
msgstr ""
-#: ../text.py:1019 ../text.py:1087 ../textw/userauth.py:8
+#: ../text.py:1019 ../text.py:1087 ../textw/userauth.py:9
msgid "Root Password"
msgstr ""
-#: ../text.py:1021 ../text.py:1089 ../textw/userauth.py:152
+#: ../text.py:1021 ../text.py:1089 ../textw/userauth.py:161
msgid "User Account Setup"
msgstr ""
@@ -686,90 +687,90 @@ msgstr ""
msgid "I can't go to the previous step from here. You will have to try again."
msgstr ""
-#: ../todo.py:329
+#: ../todo.py:331
#, c-format
msgid "Error copying file: %s"
msgstr ""
-#: ../todo.py:410
+#: ../todo.py:412
msgid "Creating boot disk..."
msgstr ""
-#: ../todo.py:430
+#: ../todo.py:432
msgid "Reading"
msgstr ""
-#: ../todo.py:431
+#: ../todo.py:433
msgid "Reading package information..."
msgstr ""
-#: ../todo.py:627 ../todo.py:640
+#: ../todo.py:629 ../todo.py:642
msgid "no suggestion"
msgstr ""
-#: ../todo.py:646
+#: ../todo.py:648
msgid "Searching"
msgstr ""
-#: ../todo.py:647
+#: ../todo.py:649
msgid "Searching for Red Hat Linux installations..."
msgstr ""
-#: ../todo.py:658 ../todo.py:689
+#: ../todo.py:660 ../todo.py:691
#, c-format
msgid "Error mounting ext2 filesystem on %s: %s"
msgstr ""
-#: ../todo.py:700
+#: ../todo.py:702
msgid "Finding"
msgstr ""
-#: ../todo.py:701
+#: ../todo.py:703
msgid "Finding packages to upgrade..."
msgstr ""
-#: ../todo.py:944
+#: ../todo.py:946
msgid "Processing"
msgstr ""
-#: ../todo.py:945
+#: ../todo.py:947
msgid "Preparing to install..."
msgstr ""
-#: ../todo.py:1112
+#: ../todo.py:1114
#, c-format
msgid "Upgrading %s.\n"
msgstr ""
-#: ../todo.py:1114
+#: ../todo.py:1116
#, c-format
msgid "Installing %s.\n"
msgstr ""
-#: ../todo.py:1135
+#: ../todo.py:1137
msgid ""
"You don't appear to have enough disk space to install the packages you've "
"selected. You need more space on the following filesystems:\n"
"\n"
msgstr ""
-#: ../todo.py:1138
+#: ../todo.py:1140
msgid "Mount Point"
msgstr ""
-#: ../todo.py:1138
+#: ../todo.py:1140
msgid "Space Needed"
msgstr ""
-#: ../todo.py:1151
+#: ../todo.py:1153
msgid "Disk Space"
msgstr ""
-#: ../todo.py:1175
+#: ../todo.py:1177
msgid "Post Install"
msgstr ""
-#: ../todo.py:1176
+#: ../todo.py:1178
msgid "Performing post install configuration..."
msgstr ""
@@ -805,68 +806,68 @@ msgstr ""
msgid "Vertical frequency range"
msgstr ""
-#: ../iw/account.py:14
+#: ../iw/account.py:15
msgid "Account Configuration"
msgstr ""
-#: ../iw/account.py:35
+#: ../iw/account.py:36
msgid "Root password accepted."
msgstr ""
-#: ../iw/account.py:38
+#: ../iw/account.py:39
msgid "Root password is too short."
msgstr ""
-#: ../iw/account.py:40
+#: ../iw/account.py:41
msgid "Root password does not match."
msgstr ""
-#: ../iw/account.py:138
+#: ../iw/account.py:164
msgid "Root Password: "
msgstr ""
-#: ../iw/account.py:141
+#: ../iw/account.py:167
msgid "Confirm: "
msgstr ""
-#: ../iw/account.py:197 ../iw/account.py:236
+#: ../iw/account.py:225 ../iw/account.py:264
msgid "Account Name"
msgstr ""
-#: ../iw/account.py:201 ../textw/userauth.py:79
+#: ../iw/account.py:229 ../textw/userauth.py:80
msgid "Password"
msgstr ""
-#: ../iw/account.py:205 ../textw/userauth.py:80
+#: ../iw/account.py:233 ../textw/userauth.py:81
msgid "Password (confirm)"
msgstr ""
-#: ../iw/account.py:209 ../iw/account.py:236 ../textw/userauth.py:78
-#: ../textw/userauth.py:164
+#: ../iw/account.py:237 ../iw/account.py:264 ../textw/userauth.py:79
+#: ../textw/userauth.py:173
msgid "Full Name"
msgstr ""
-#: ../iw/account.py:218 ../libfdisk/newtfsedit.c:1298 ../textw/userauth.py:175
+#: ../iw/account.py:246 ../libfdisk/newtfsedit.c:1298 ../textw/userauth.py:184
msgid "Add"
msgstr ""
-#: ../iw/account.py:220 ../libfdisk/newtfsedit.c:1291
+#: ../iw/account.py:248 ../libfdisk/newtfsedit.c:1291
#: ../libfdisk/newtfsedit.c:1299 ../textw/lilo.py:177 ../textw/lilo.py:199
#: ../textw/partitioning.py:62 ../textw/silo.py:185 ../textw/silo.py:207
-#: ../textw/userauth.py:176
+#: ../textw/userauth.py:185
msgid "Edit"
msgstr ""
-#: ../iw/account.py:222 ../libfdisk/newtfsedit.c:1291
-#: ../libfdisk/newtfsedit.c:1299 ../textw/userauth.py:175
+#: ../iw/account.py:250 ../libfdisk/newtfsedit.c:1291
+#: ../libfdisk/newtfsedit.c:1299 ../textw/userauth.py:184
msgid "Delete"
msgstr ""
-#: ../iw/account.py:224
+#: ../iw/account.py:252
msgid "New"
msgstr ""
-#: ../iw/auth.py:11 ../textw/userauth.py:250
+#: ../iw/auth.py:11 ../textw/userauth.py:259
msgid "Authentication Configuration"
msgstr ""
@@ -878,7 +879,7 @@ msgstr ""
msgid "Enable shadow passwords"
msgstr ""
-#: ../iw/auth.py:53 ../textw/userauth.py:255
+#: ../iw/auth.py:53 ../textw/userauth.py:264
msgid "Enable NIS"
msgstr ""
@@ -963,7 +964,7 @@ msgstr ""
msgid "fdisk"
msgstr ""
-#: ../iw/fdisk.py:80
+#: ../iw/fdisk.py:78
msgid "Select drive to run fdisk on"
msgstr ""
@@ -996,15 +997,15 @@ msgstr ""
msgid "Install Type"
msgstr ""
-#: ../iw/installpath.py:181
+#: ../iw/installpath.py:187
msgid "Install"
msgstr ""
-#: ../iw/installpath.py:183
+#: ../iw/installpath.py:189
msgid "Upgrade"
msgstr ""
-#: ../iw/installpath.py:236
+#: ../iw/installpath.py:242
msgid "Use fdisk"
msgstr ""
@@ -1012,31 +1013,31 @@ msgstr ""
msgid "Keyboard Configuration"
msgstr ""
-#: ../iw/keyboard.py:56
+#: ../iw/keyboard.py:57
msgid "Model"
msgstr ""
-#: ../iw/keyboard.py:75
+#: ../iw/keyboard.py:76
msgid "Layout"
msgstr ""
-#: ../iw/keyboard.py:94
+#: ../iw/keyboard.py:95
msgid "Dead Keys"
msgstr ""
-#: ../iw/keyboard.py:103
+#: ../iw/keyboard.py:104
msgid "Enable dead keys"
msgstr ""
-#: ../iw/keyboard.py:104
+#: ../iw/keyboard.py:105
msgid "Disable dead keys"
msgstr ""
-#: ../iw/keyboard.py:113
+#: ../iw/keyboard.py:114
msgid "Test your selection here:"
msgstr ""
-#: ../iw/language.py:21 ../loader/lang.c:267
+#: ../iw/language.py:21 ../loader/lang.c:275
msgid "What language should be used during the installation process?"
msgstr ""
@@ -1092,7 +1093,7 @@ msgstr ""
msgid "Boot label"
msgstr ""
-#: ../iw/mouse.py:134
+#: ../iw/mouse.py:132
msgid "Emulate 3 Buttons"
msgstr ""
@@ -1286,23 +1287,23 @@ msgstr ""
msgid "Time Zone Selection"
msgstr ""
-#: ../iw/timezone.py:143
+#: ../iw/timezone.py:147
msgid "View:"
msgstr ""
-#: ../iw/timezone.py:151 ../iw/timezone.py:152
+#: ../iw/timezone.py:155 ../iw/timezone.py:156
msgid "System clock uses UTC"
msgstr ""
-#: ../iw/timezone.py:200
+#: ../iw/timezone.py:204
msgid "Use Daylight Saving Time (US only)"
msgstr ""
-#: ../iw/timezone.py:214
+#: ../iw/timezone.py:218
msgid "Location"
msgstr ""
-#: ../iw/timezone.py:215
+#: ../iw/timezone.py:219
msgid "UTC Offset"
msgstr ""
@@ -1490,116 +1491,126 @@ msgstr ""
msgid "Hardware clock set to GMT?"
msgstr ""
-#: ../textw/userauth.py:10
+#: ../textw/userauth.py:11
msgid ""
"Pick a root password. You must type it twice to ensure you know what it is "
"and didn't make a mistake in typing. Remember that the root password is a "
"critical part of system security!"
msgstr ""
-#: ../loader/urls.c:337 ../textw/userauth.py:23
+#: ../loader/urls.c:337 ../textw/userauth.py:24
msgid "Password:"
msgstr ""
-#: ../textw/userauth.py:24
+#: ../textw/userauth.py:25
msgid "Password (again):"
msgstr ""
-#: ../textw/userauth.py:40 ../textw/userauth.py:95
+#: ../textw/userauth.py:41 ../textw/userauth.py:104
msgid "Password Length"
msgstr ""
-#: ../textw/userauth.py:41
+#: ../textw/userauth.py:42
msgid "The root password must be at least 6 characters long."
msgstr ""
-#: ../textw/userauth.py:45 ../textw/userauth.py:103
+#: ../textw/userauth.py:46 ../textw/userauth.py:112
msgid "Password Mismatch"
msgstr ""
-#: ../textw/userauth.py:46 ../textw/userauth.py:104
+#: ../textw/userauth.py:47 ../textw/userauth.py:113
msgid "The passwords you entered were different. Please try again."
msgstr ""
-#: ../textw/userauth.py:71
+#: ../textw/userauth.py:72
msgid "Edit User"
msgstr ""
-#: ../textw/userauth.py:73
+#: ../textw/userauth.py:74
msgid "Add User"
msgstr ""
-#: ../textw/userauth.py:77
+#: ../textw/userauth.py:78
msgid "User ID"
msgstr ""
-#: ../textw/userauth.py:90
+#: ../textw/userauth.py:91
+msgid "Bad User ID"
+msgstr ""
+
+#: ../textw/userauth.py:92
+msgid ""
+"User IDs must be less than 8 characters and contain only characters A-Z, "
+"a-z, and 0-9."
+msgstr ""
+
+#: ../textw/userauth.py:99
msgid "Missing User ID"
msgstr ""
-#: ../textw/userauth.py:91
+#: ../textw/userauth.py:100
msgid "You must provide a user ID"
msgstr ""
-#: ../textw/userauth.py:96
+#: ../textw/userauth.py:105
msgid "The password must be at least 6 characters long."
msgstr ""
-#: ../textw/userauth.py:113
+#: ../textw/userauth.py:122
msgid "User Exists"
msgstr ""
-#: ../textw/userauth.py:114
+#: ../textw/userauth.py:123
msgid "This user id already exists. Choose another."
msgstr ""
-#: ../textw/userauth.py:141
+#: ../textw/userauth.py:150
msgid ""
"You should use a normal user account for most activities on your system. By "
"not using the root account casually, you'll reduce the chance of disrupting "
"your system's configuration."
msgstr ""
-#: ../textw/userauth.py:154
+#: ../textw/userauth.py:163
msgid ""
"What user account would you like to have on the system? You should have at "
"least one non-root account for normal work, but multi-user systems can have "
"any number of accounts set up."
msgstr ""
-#: ../textw/userauth.py:164
+#: ../textw/userauth.py:173
msgid "User name"
msgstr ""
-#: ../textw/userauth.py:188
+#: ../textw/userauth.py:197
msgid "Enter the information for the user."
msgstr ""
-#: ../textw/userauth.py:200
+#: ../textw/userauth.py:209
msgid "Change the information for this user."
msgstr ""
-#: ../textw/userauth.py:251
+#: ../textw/userauth.py:260
msgid "Use Shadow Passwords"
msgstr ""
-#: ../textw/userauth.py:253
+#: ../textw/userauth.py:262
msgid "Enable MD5 Passwords"
msgstr ""
-#: ../textw/userauth.py:260
+#: ../textw/userauth.py:269
msgid "NIS Domain:"
msgstr ""
-#: ../textw/userauth.py:262
+#: ../textw/userauth.py:271
msgid "NIS Server:"
msgstr ""
-#: ../textw/userauth.py:264
+#: ../textw/userauth.py:273
msgid "or use:"
msgstr ""
-#: ../textw/userauth.py:267
+#: ../textw/userauth.py:276
msgid "Request server via broadcast"
msgstr ""
@@ -2155,8 +2166,8 @@ msgstr ""
msgid "Module Parameters"
msgstr ""
-#: ../loader/devices.c:167 ../loader/devices.c:242 ../loader/loader.c:253
-#: ../loader/loader.c:312 ../loader/loader.c:328 ../loader/loader.c:1774
+#: ../loader/devices.c:167 ../loader/devices.c:268 ../loader/loader.c:253
+#: ../loader/loader.c:312 ../loader/loader.c:328 ../loader/loader.c:1792
msgid "Devices"
msgstr ""
@@ -2164,7 +2175,7 @@ msgstr ""
msgid "Insert your driver disk and press \"OK\" to continue."
msgstr ""
-#: ../loader/devices.c:179 ../loader/loader.c:1783
+#: ../loader/devices.c:179 ../loader/loader.c:1801
msgid "Failed to mount floppy disk."
msgstr ""
@@ -2174,17 +2185,17 @@ msgid ""
"Red Hat Linux."
msgstr ""
-#: ../loader/devices.c:206
+#: ../loader/devices.c:233
msgid ""
"Which driver should I try?. If the driver you need does not appear in this "
"list, and you have a separate driver disk, please press F2."
msgstr ""
-#: ../loader/devices.c:211
+#: ../loader/devices.c:238
msgid "Which driver should I try?"
msgstr ""
-#: ../loader/devices.c:219
+#: ../loader/devices.c:246
msgid "Specify module parameters"
msgstr ""
@@ -2207,15 +2218,15 @@ msgstr ""
msgid "Error on line %d of kickstart file %s."
msgstr ""
-#: ../loader/lang.c:267
+#: ../loader/lang.c:275
msgid "Choose a Language"
msgstr ""
-#: ../loader/lang.c:534
+#: ../loader/lang.c:546
msgid "Keyboard Type"
msgstr ""
-#: ../loader/lang.c:535
+#: ../loader/lang.c:547
msgid "What type of keyboard do you have?"
msgstr ""
@@ -2326,51 +2337,51 @@ msgstr ""
msgid "Unable to retrieve the second stage ramdisk"
msgstr ""
-#: ../loader/loader.c:1131
+#: ../loader/loader.c:1143
msgid "Rescue Method"
msgstr ""
-#: ../loader/loader.c:1132
+#: ../loader/loader.c:1144
msgid "Installation Method"
msgstr ""
-#: ../loader/loader.c:1134
+#: ../loader/loader.c:1146
msgid "What type of media contains the rescue image?"
msgstr ""
-#: ../loader/loader.c:1136
+#: ../loader/loader.c:1148
msgid "What type of media contains the packages to be installed?"
msgstr ""
-#: ../loader/loader.c:1666
+#: ../loader/loader.c:1684
msgid "Cannot find ks.cfg on boot floppy."
msgstr ""
-#: ../loader/loader.c:1712
+#: ../loader/loader.c:1730
#, c-format
msgid "Failed to read directory %s: %s"
msgstr ""
-#: ../loader/loader.c:1775
+#: ../loader/loader.c:1793
msgid "Insert your updates disk and press \"OK\" to continue."
msgstr ""
#. Copy everything to /tmp/updates so .so files don't get run
#. from /dev/fd0. We could (and probably should) get smarter about
#. this at some point.
-#: ../loader/loader.c:1788
+#: ../loader/loader.c:1806
msgid "Updates"
msgstr ""
-#: ../loader/loader.c:1788
+#: ../loader/loader.c:1806
msgid "Reading anaconda updates..."
msgstr ""
-#: ../loader/loader.c:1942
+#: ../loader/loader.c:1960
msgid "PC Card"
msgstr ""
-#: ../loader/loader.c:1942
+#: ../loader/loader.c:1960
msgid "Initializing PC Card Devices..."
msgstr ""
diff --git a/silo.py b/silo.py
index 8086dae4d..9c8512229 100644
--- a/silo.py
+++ b/silo.py
@@ -6,11 +6,6 @@ import iutil
import isys
class SiloInstall:
- def __init__ (self, todo):
- self.todo = todo
- self.linuxAlias = 1
- self.bootDevice = 1
-
def checkUFS(self, dev):
f = open("/proc/mounts","r")
lines = f.readlines ()
@@ -72,25 +67,23 @@ class SiloInstall:
pass
return ufstype
- def getSiloImages(self):
- todo = self.todo
-
- if not todo.__dict__.has_key('fstab'):
- raise RuntimeError, "No fstab object"
+ def setSiloImages(self, images):
+ self.siloImages = images
- (drives, raid) = todo.fstab.partitionList()
+ def getLiloImages(self, fstab):
+ (drives, raid) = fstab.raidList()
# rearrange the fstab so it's indexed by device
mountsByDev = {}
for (mntpoint, device, fsystem, doFormat, size) in \
- self.todo.fstab.mountList():
+ fstab.mountList():
mountsByDev[device] = mntpoint
oldImages = {}
- for dev in todo.liloImages.keys():
- oldImages[dev] = todo.liloImages[dev]
+ for dev in self.siloImages.keys():
+ oldImages[dev] = self.siloImages[dev]
- todo.liloImages = {}
+ self.siloImages = {}
nSolaris = 0
nSunOS = 0
for (dev, devName, type, start, size) in drives:
@@ -110,51 +103,29 @@ class SiloInstall:
if (mountsByDev.has_key(dev)):
if mountsByDev[dev] == '/':
- todo.liloImages[dev] = ("linux", 2)
+ self.siloImages[dev] = ("linux", 2)
elif type == 6:
if not oldImages.has_key(dev):
- todo.liloImages[dev] = ("", type)
+ self.siloImages[dev] = ("", type)
else:
- todo.liloImages[dev] = oldImages[dev]
+ self.siloImages[dev] = oldImages[dev]
ostype = self.checkUFS(dev)
if ostype == "Solaris":
if nSolaris == 0:
- todo.liloImages[dev] = ("solaris", type)
+ self.siloImages[dev] = ("solaris", type)
else:
- todo.liloImages[dev] = ("solaris%d" % nSolaris, type)
+ self.siloImages[dev] = ("solaris%d" % nSolaris, type)
nSolaris = nSolaris + 1
elif ostype == "SunOS":
if nSunOS == 0:
- todo.liloImages[dev] = ("sunos", type)
+ self.siloImages[dev] = ("sunos", type)
else:
- todo.liloImages[dev] = ("sunos%d" % nSunOS, type)
+ self.siloImages[dev] = ("sunos%d" % nSunOS, type)
nSunOS = nSunOS + 1
- return todo.liloImages
-
- def getSiloOptions(self):
- bootpart = self.todo.fstab.getBootDevice()
- i = len (bootpart) - 1
- while i > 0 and bootpart[i] in string.digits:
- i = i - 1
- boothd = bootpart[:i+1]
-
- mbrpart = None
-
- (drives, raid) = self.todo.fstab.partitionList()
- for (dev, devName, type, start, size) in drives:
- i = len (dev) - 1
- while i > 0 and dev[i] in string.digits:
- i = i - 1
- devhd = dev[:i+1]
- if devhd == boothd and start == 0:
- mbrpart = dev
- break
-
- if not mbrpart: mbrpart = boothd + "3"
- return (bootpart, boothd, mbrpart)
+ return (self.siloImages, self.default)
- def getSiloMbrDefault(self):
+ def getSiloMbrDefault(self, fstab):
# Check partition at cylinder 0 on the boot disk
# is /, /boot or Linux swap
bootpart = self.todo.fstab.getBootDevice()
@@ -206,32 +177,33 @@ class SiloInstall:
def disk2PromPath(self,dev):
return _silo.disk2PromPath(dev)
- def installSilo (self):
- todo = self.todo
+ def install(self, fstab, instRoot, hdList, upgrade):
silo = LiloConfiguration ()
- if not todo.liloImages:
- todo.setLiloImages(self.getSiloImages())
-
- # OK - for this release we need to just blow away the old silo.conf
- # just like we used to.
-## # on upgrade read in the silo config file
-## if os.access (todo.instPath + '/etc/silo.conf', os.R_OK):
-## silo.read (todo.instPath + '/etc/silo.conf')
-## elif not todo.liloDevice: return
+ if not self.siloImages:
+ (images, default) = self.getSiloImages(fstab)
+ self.setSiloImages(images)
(bootpart, boothd, mbrpart) = self.getSiloOptions()
- smpInstalled = (self.todo.hdList.has_key('kernel-smp') and
- self.todo.hdList['kernel-smp'].selected)
+ smpInstalled = (hdList.has_key('kernel-smp') and
+ hdList['kernel-smp'].selected)
- rootDev = self.todo.fstab.getRootDevice()[0]
+ rootDev = fstab.getRootDevice ()
+ if rootDev:
+ # strip off the filesystem; we don't need it
+ rootDev = rootDev[0]
+ else:
+ raise RuntimeError, "Installing lilo, but there is no root device"
args = [ "silo" ]
- if todo.liloDevice == "mbr":
- device = mbrpart
+ bootpart = fstab.getBootDevice()
+ boothd = fstab.getMbrDevice()
+
+ if self.siloDevice == "mbr":
+ device = boothd
try:
- num = _silo.zeroBasedPart(todo.instPath + "/dev/" + boothd)
+ num = _silo.zeroBasedPart(instRoot + "/dev/" + boothd)
if num:
device = boothd + "%d" % num
except:
@@ -254,7 +226,7 @@ class SiloInstall:
main = "linux"
- for (drive, (label, liloType)) in todo.liloImages.items ():
+ for (drive, (label, siloType)) in self.siloImages.items ():
if (drive == rootDev) and label:
main = label
elif label:
@@ -296,11 +268,11 @@ class SiloInstall:
sl = LiloConfiguration()
sl.addEntry("label", label)
- if os.access (todo.instPath + initrd, os.R_OK):
+ if os.access (instRoot + initrd, os.R_OK):
sl.addEntry("initrd", initrdFile)
- if self.todo.liloAppend:
- sl.addEntry('append', '"%s"' % self.todo.liloAppend)
+ if self.siloAppend:
+ sl.addEntry('append', '"%s"' % self.siloAppend)
silo.addImage ("image", kernelFile, sl)
@@ -331,31 +303,63 @@ class SiloInstall:
else: # duplicate entry, first entry wins
silo.delImage (name)
- if self.todo.fstab.getBootDevice() != self.todo.fstab.getRootDevice()[0]:
- silo.write(todo.instPath + "/boot/silo.conf")
+ if fstab.getBootDevice() != fstab.getRootDevice()[0]:
+ silo.write(instRoot + "/boot/silo.conf")
try:
- os.remove(todo.instPath + "/etc/silo.conf")
+ os.remove(instRoot + "/etc/silo.conf")
except:
pass
- os.symlink("../boot/silo.conf", todo.instPath + "/etc/silo.conf")
+ os.symlink("../boot/silo.conf", instPath + "/etc/silo.conf")
else:
- silo.write(todo.instPath + "/etc/silo.conf")
-
- # XXX make me "not test mode"
- if todo.setupFilesystems:
- if todo.serial:
- messages = "/tmp/silo.log"
- else:
- messages = "/dev/tty3"
- iutil.execWithRedirect('/sbin/silo',
- args,
- stdout = None,
- root = todo.instPath)
- linuxAlias = ""
- if self.linuxAlias and self.hasAliases():
- linuxAlias = bootDevice
- if not self.bootDevice:
- bootDevice = ""
- if not linuxAlias:
- linuxAlias = ""
- _silo.setPromVars(linuxAlias,bootDevice)
+ silo.write(instRoot + "/etc/silo.conf")
+
+ if self.serial:
+ messages = "/tmp/silo.log"
+ else:
+ messages = "/dev/tty3"
+ iutil.execWithRedirect('/sbin/silo',
+ args,
+ stdout = None,
+ root = instRoot)
+ linuxAlias = ""
+ if self.linuxAlias and self.hasAliases():
+ linuxAlias = bootDevice
+ if not self.bootDevice:
+ bootDevice = ""
+ if not linuxAlias:
+ linuxAlias = ""
+ _silo.setPromVars(linuxAlias,bootDevice)
+
+ def setDevice(self, device):
+ if (type(device) == type((1,))):
+ self.siloDevice = device
+ elif device != "mbr" and device != "partition" and device:
+ raise ValueError, "device must be raid, mbr, partition, or None"
+ self.siloDevice = device
+
+ def setAppend(self, append):
+ self.siloAppend = append
+
+ def setDefault(self, default):
+ for (label, fsType) in self.siloImages.values():
+ if label == default:
+ self.default = default
+ return
+ raise IndexError, "unknown silo label %s" % (default,)
+
+ def getLinear(self):
+ return self.siloLinear
+
+ def getDevice(self):
+ return self.siloDevice
+
+ def getAppend(self):
+ return self.siloAppend
+
+ def __init__(self):
+ self.siloImages = {}
+ self.siloDevice = 'mbr'
+ self.siloLinear = 1
+ self.siloAppend = None
+ self.default = None
+ self.initrdsMade = {}
diff --git a/text.py b/text.py
index b863acf6a..4995b5846 100644
--- a/text.py
+++ b/text.py
@@ -983,10 +983,10 @@ class InstallInterface:
self.screen.pushHelpLine (_(" <Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next screen"))
# uncomment this line to make the installer quit on <Ctrl+Z>
# handy for quick debugging.
- self.screen.suspendCallback(killSelf, self.screen)
+ #self.screen.suspendCallback(killSelf, self.screen)
# uncomment this line to drop into the python debugger on <Ctrl+Z>
# --VERY handy--
- #self.screen.suspendCallback(debugSelf, self.screen)
+ self.screen.suspendCallback(debugSelf, self.screen)
self.individual = Flag(0)
self.step = 0
self.dir = 1
diff --git a/textw/silo.py b/textw/silo.py
index 07f953e61..e8fabca04 100644
--- a/textw/silo.py
+++ b/textw/silo.py
@@ -19,8 +19,8 @@ class SiloAppendWindow:
entry = Entry(48, scroll = 1, returnExit = 1)
- if todo.liloAppend:
- entry.set(todo.liloAppend)
+ if todo.silo.getAppend():
+ entry.set(todo.silo.getAppend())
buttons = ButtonBar(screen, [(_("OK"), "ok"), (_("Skip"), "skip"),
(_("Back"), "back") ] )
@@ -38,14 +38,14 @@ class SiloAppendWindow:
if button == "skip":
todo.skipLilo = 1
- todo.liloDevice = None
+ todo.lilo.setDevice(None)
else:
todo.skipLilo = 0
if entry.value():
- todo.liloAppend = string.strip(entry.value())
+ todo.silo.setAppend(string.strip(entry.value()))
else:
- todo.liloAppend = None
+ todo.silo.setAppend(None)
return INSTALL_OK
@@ -98,9 +98,9 @@ class SiloWindow:
result = g.runOnce()
if rc1.selected():
- todo.setLiloLocation("mbr")
+ todo.silo.setDevice("mbr")
else:
- todo.setLiloLocation("partition")
+ todo.silo.setDevice("partition")
lAlias = linuxAlias.selected() != 0
bDevice = bootDevice.selected() != 0
@@ -165,10 +165,18 @@ class SiloImagesWindow:
return "%-10s %-25s %-7s %-10s" % ( "/dev/" + device, type, default, label)
def __call__(self, screen, todo):
- images = todo.silo.getSiloImages()
+ (images, default) = todo.silo.getSiloImages()
if not images: return INSTALL_NOOP
if todo.skipLilo: return INSTALL_NOOP
+ # the default item is kept as a label (which makes more sense for the
+ # user), but we want our listbox "indexed" by device, which so we keep
+ # the default item as a device
+ for (dev, (label, type)) in images.items():
+ if label == default:
+ default = dev
+ break
+
sortedKeys = images.keys()
sortedKeys.sort()
@@ -176,11 +184,11 @@ class SiloImagesWindow:
( _("Device"), _("Partition type"), _("Default"), _("Boot label")))
listbox = Listbox(5, scroll = 1, returnExit = 1)
- default = ""
-
for n in sortedKeys:
(label, type) = images[n]
listbox.append(self.formatDevice(type, label, n, default), n)
+ if n == default:
+ listbox.setCurrent(n)
buttons = ButtonBar(screen, [ (_("Ok"), "ok"), (_("Edit"), "edit"),
(_("Back"), "back") ] )
@@ -231,7 +239,8 @@ class SiloImagesWindow:
if (result == "back"):
return INSTALL_BACK
- todo.setLiloImages(images)
+ todo.silo.setLiloImages(images)
+ todo.silo.setDefault(label)
return INSTALL_OK
diff --git a/todo.py b/todo.py
index c5b01ece7..aca4b8f65 100644
--- a/todo.py
+++ b/todo.py
@@ -1218,7 +1218,8 @@ class ToDo:
# XXX make me "not test mode"
if self.setupFilesystems:
if arch == "sparc":
- self.silo.installSilo ()
+ self.silo.install (self.fstab, self.instPath, self.hdList,
+ self.upgrade)
elif arch == "i386":
self.lilo.install (self.fstab, self.instPath, self.hdList,
self.upgrade)