diff options
author | Matt Wilson <msw@redhat.com> | 1999-09-14 00:54:35 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-09-14 00:54:35 +0000 |
commit | 565d5ab529d2dd8bfa78f6cd1febefa6ba703c92 (patch) | |
tree | d8ab46a3e45aae77f29384b84e885aa799adac57 /iw/lilo.py | |
parent | 12e7f60d6a97b6c4eb59dda70c0371f144491c97 (diff) | |
download | anaconda-565d5ab529d2dd8bfa78f6cd1febefa6ba703c92.tar.gz anaconda-565d5ab529d2dd8bfa78f6cd1febefa6ba703c92.tar.xz anaconda-565d5ab529d2dd8bfa78f6cd1febefa6ba703c92.zip |
lilo fixes, don't allow adding duplicate users
Diffstat (limited to 'iw/lilo.py')
-rw-r--r-- | iw/lilo.py | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/iw/lilo.py b/iw/lilo.py index fbe66f89f..28c9810e1 100644 --- a/iw/lilo.py +++ b/iw/lilo.py @@ -19,19 +19,21 @@ class LiloWindow (InstallWindow): ics.setNextEnabled (1) self.type = None self.bootdisk = None + self.lilo = None def getNext (self): - if self.bootdisk: - if self.bootdisk.get_active (): - self.todo.bootdisk = 1 - else: - self.todo.bootdisk = 0 + # XXX + if not self.bootdisk: return None + + if self.bootdisk.get_active (): + self.todo.bootdisk = 1 + else: + self.todo.bootdisk = 0 if self.lilo.get_active (): self.todo.setLiloLocation (None) else: - self.type = self.list.selection[0] - if self.list.selection[0] == 0: + if self.mbr.get_active (): self.todo.setLiloLocation ("mbr") else: self.todo.setLiloLocation ("partition") @@ -127,13 +129,13 @@ class LiloWindow (InstallWindow): label.set_alignment(0.0, 0.5) self.radioBox.attach(label, 0, 2, 1, 2) - group = GtkRadioButton(None, + self.mbr = GtkRadioButton(None, ("/dev/%s %s" % (boothd, _("Master Boot Record (MBR)")))) - self.radioBox.attach(group, 1, 2, 2, 3) - group = GtkRadioButton(group, + self.radioBox.attach(self.mbr, 1, 2, 2, 3) + part = GtkRadioButton(self.mbr, ("/dev/%s %s" % (bootpart, _("First sector of boot partition")))) - self.radioBox.attach(group, 1, 2, 3, 4) + self.radioBox.attach(part, 1, 2, 3, 4) self.linearCheck = GtkCheckButton( _("Use linear mode (needed for some SCSI drives)")) |