/[smeserver]/cdrom.image/sme9/updates/textw/partition_text.py
ViewVC logotype

Annotation of /cdrom.image/sme9/updates/textw/partition_text.py

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download) (as text)
Sun Dec 22 04:27:53 2013 UTC (10 years, 10 months ago) by wellsi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
Content type: text/x-python
FILE REMOVED
anaconda updates now handled via patches

1 charliebrady 1.1 #
2     # partition_text.py: allows the user to choose how to partition their disks
3     # in text mode
4     #
5     # Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 Red Hat, Inc.
6     # All rights reserved.
7     #
8     # This program is free software; you can redistribute it and/or modify
9     # it under the terms of the GNU General Public License as published by
10     # the Free Software Foundation; either version 2 of the License, or
11     # (at your option) any later version.
12     #
13     # This program is distributed in the hope that it will be useful,
14     # but WITHOUT ANY WARRANTY; without even the implied warranty of
15     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16     # GNU General Public License for more details.
17     #
18     # You should have received a copy of the GNU General Public License
19     # along with this program. If not, see <http://www.gnu.org/licenses/>.
20     #
21     # Author(s): Jeremy Katz <katzj@redhat.com>
22     #
23    
24     import os, sys
25     import isys
26     import string
27     import copy
28     import network
29     import parted
30     import storage.iscsi
31     import storage.fcoe
32     import storage.zfcp
33     from partIntfHelpers import *
34     from snack import *
35     from constants_text import *
36     from constants import *
37     from add_drive_text import addDriveDialog
38    
39     import gettext
40     _ = lambda x: gettext.ldgettext("anaconda", x)
41    
42     import logging
43     log = logging.getLogger("anaconda")
44    
45     class PartitionTypeWindow:
46     def typeboxChange(self, (typebox, drivelist)):
47     flag = FLAGS_RESET
48     if typebox.current() == CLEARPART_TYPE_NONE:
49     flag = FLAGS_SET
50     # XXX need a way to disable the checkbox tree
51    
52     def clearDrivelist(self):
53     # XXX remove parted object refs
54     # need to put in clear() method for checkboxtree in snack
55     self.drivelist.key2item = {}
56     self.drivelist.item2key = {}
57    
58     def __call__(self, screen, anaconda):
59     self.anaconda = anaconda
60     anaconda.dispatch.skipStep("autopartitionexecute", skip = 0)
61     anaconda.id.storage.doAutoPart = True
62     anaconda.id.storage.clearPartType = CLEARPART_TYPE_ALL
63     anaconda.id.storage.clearPartDisks = map(lambda s: s.name, anaconda.id.storage.partitioned)
64     anaconda.dispatch.skipStep("partition", skip = 1)
65     anaconda.dispatch.skipStep("bootloader", skip = 1)
66     anaconda.dispatch.skipStep("bootloadersetup", skip = 0)
67     anaconda.dispatch.skipStep("bootloaderadvanced", skip = 1)
68     anaconda.dispatch.skipStep("instbootloader", skip = 0)
69     anaconda.id.bootloader.doUpgradeOnly = 1
70     anaconda.id.bootloader.useGrubVal = 1
71     #anaconda.id.bootloader.setDevice(self.bootDev)
72    
73     return INSTALL_OK
74    

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed