diff options
author | Erik Troan <ewt@redhat.com> | 2001-02-09 21:39:18 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2001-02-09 21:39:18 +0000 |
commit | a84e1bc82b7a93fa5473c56a79fa0e33db1a350a (patch) | |
tree | 309ed9d9195aeb7b3a63aa5d5b5ce3ededbe02e5 /todo.py | |
parent | 4c9a4285fae9043ab750df24cac13041f65fdf07 (diff) | |
download | anaconda-a84e1bc82b7a93fa5473c56a79fa0e33db1a350a.tar.gz anaconda-a84e1bc82b7a93fa5473c56a79fa0e33db1a350a.tar.xz anaconda-a84e1bc82b7a93fa5473c56a79fa0e33db1a350a.zip |
1) don't do anything w/ removable media
2) don't reset lilo append line
Diffstat (limited to 'todo.py')
-rw-r--r-- | todo.py | 75 |
1 files changed, 1 insertions, 74 deletions
@@ -1265,7 +1265,7 @@ class ToDo: if arch == "i386": todo.lilo.setDevice(where) todo.lilo.setLinear(linear) - todo.lilo.setAppend(append) + if append: todo.lilo.setAppend(append) elif arch == "sparc": todo.silo.setDevice(where) todo.silo.setAppend(append) @@ -1392,72 +1392,6 @@ class ToDo: os.close(devnull) - def createCdrom(self): - log ("making cd-rom links") - list = isys.cdromList() - count = 0 - for device in list: - cdname = "cdrom" - if (count): - cdname = "%s%d" % (cdname, count) - count = count + 1 - - log ("creating cdrom link for " + device) - try: - os.unlink(self.instPath + "/dev/" + cdname) - except OSError: - pass - os.symlink(device, self.instPath + "/dev/" + cdname) - mntpoint = "/mnt/" + cdname - self.fstab.addMount(cdname, mntpoint, "iso9660") - - def createRemovable(self, rType, partNum = None, mntDirRoot = None): - devDict = isys.floppyDriveDict() - - d = isys.hardDriveDict() - for item in d.keys(): - devDict[item] = d[item] - - list = devDict.keys() - list.sort() - - if not mntDirRoot: - mntDirRoot = rType - - count = 0 - for device in list: - descript = devDict[device] - if string.find(string.upper(descript), string.upper(rType)) == -1: - continue - - log ("found %s disk, creating link", rType) - - try: - os.stat(self.instPath + "/dev/%s" % rType) - log ("link exists, removing") - os.unlink(self.instPath + "/dev/%s" % rType) - except OSError: - pass - - if partNum: - device = device + str(partNum) - - devLink = rType - if count: - devLink = rType + str(count) - - os.symlink(device, self.instPath + "/dev/%s" % devLink) - - mntpoint = "/mnt/" + mntDirRoot - if count: - mntpoint = mntpoint + str(count) - - self.fstab.addMount(devLink, mntpoint, "auto") - - count = count + 1 - - return count - def setDefaultRunlevel (self): try: inittab = open (self.instPath + '/etc/inittab', 'r') @@ -1891,14 +1825,7 @@ class ToDo: try: if not self.upgrade: - self.createCdrom() - self.fstab.addMount(self.fdDevice, "/mnt/floppy", "auto") - if self.fdDevice[0:2] == "fd": - self.createRemovable("ls-120", mntDirRoot = "ls120") - - self.createRemovable("zip", partNum = 4) - self.createRemovable("jaz", partNum = 4) w.set(1) |