summaryrefslogtreecommitdiffstats
path: root/todo.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2000-05-02 17:03:39 +0000
committerMike Fulbright <msf@redhat.com>2000-05-02 17:03:39 +0000
commite518bc442b18a7462746b28080384dcf775aecba (patch)
tree2b3b502515d88446d04f942a1e1959a274c1354e /todo.py
parent375db35173348378e4b2d7b979053f27a06e82ce (diff)
downloadanaconda-e518bc442b18a7462746b28080384dcf775aecba.tar.gz
anaconda-e518bc442b18a7462746b28080384dcf775aecba.tar.xz
anaconda-e518bc442b18a7462746b28080384dcf775aecba.zip
fixes to make --onpart work better
Diffstat (limited to 'todo.py')
-rw-r--r--todo.py42
1 files changed, 25 insertions, 17 deletions
diff --git a/todo.py b/todo.py
index 8865e6693..0f8cfd002 100644
--- a/todo.py
+++ b/todo.py
@@ -276,7 +276,6 @@ class ToDo:
self.installSystem = installSystem
self.language = Language ()
self.serial = serial
- self.fstab = None
self.reconfigOnly = reconfigOnly
self.network = Network ()
self.rootpassword = Password ()
@@ -287,8 +286,14 @@ class ToDo:
self.desktop = Desktop ()
self.ddruidReadOnly = 0
self.bootdisk = 1
+
log.open (serial, reconfigOnly, test)
+ # try to get --onpart working again
+ from fstab import NewtFstab
+ self.fstab = NewtFstab(self.setupFilesystems,serial,0,0,
+ self.intf.waitWindow,self.intf.messageWindow)
+
# liloDevice, liloLinear, liloAppend are initialized form the
# default install class
arch = iutil.getArch ()
@@ -364,21 +369,24 @@ class ToDo:
def setTimezoneInfo(self, timezone, asUtc = 0, asArc = 0):
self.timezone = (timezone, asUtc, asArc)
- def addMount(self, device, location, fsystem, reformat = 1):
- if fsystem == "swap":
- ufs = 0
- try:
- isys.makeDevInode(device, '/tmp/' + device)
- except:
- pass
- try:
- ufs = isys.checkUFS ('/tmp/' + device)
- except:
- pass
- if not ufs:
- location = "swap"
- reformat = 1
- self.mounts[location] = (device, fsystem, reformat)
+#
+# apparently this is cruft
+#
+# def addMount(self, device, location, fsystem, reformat = 1):
+# if fsystem == "swap":
+# ufs = 0
+# try:
+# isys.makeDevInode(device, '/tmp/' + device)
+# except:
+# pass
+# try:
+# ufs = isys.checkUFS ('/tmp/' + device)
+# except:
+# pass
+# if not ufs:
+# location = "swap"
+# reformat = 1
+# self.mounts[location] = (device, fsystem, reformat)
def writeLanguage(self):
f = open(self.instPath + "/etc/sysconfig/i18n", "w")
@@ -811,7 +819,7 @@ class ToDo:
todo.silo.setAppend(append)
for (mntpoint, (dev, fstype, reformat)) in todo.instClass.fstab:
- todo.addMount(dev, mntpoint, fstype, reformat)
+ todo.fstab.addMount(dev, mntpoint, fstype, reformat)
todo.users = []
if todo.instClass.rootPassword: