diff options
author | Mike Fulbright <msf@redhat.com> | 2000-05-02 17:03:39 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2000-05-02 17:03:39 +0000 |
commit | e518bc442b18a7462746b28080384dcf775aecba (patch) | |
tree | 2b3b502515d88446d04f942a1e1959a274c1354e /todo.py | |
parent | 375db35173348378e4b2d7b979053f27a06e82ce (diff) | |
download | anaconda-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.py | 42 |
1 files changed, 25 insertions, 17 deletions
@@ -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: |