diff options
author | Matt Wilson <msw@redhat.com> | 2001-03-16 05:44:39 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-03-16 05:44:39 +0000 |
commit | 04ea8b51cd366e59d21f5507acf2ae3ee5f95707 (patch) | |
tree | c4e89d8aae566777d5a7d8e5dbb34214cac71dd8 | |
parent | 5b922589a6c8b29efdec0b34c095b908661f946d (diff) | |
download | anaconda-04ea8b51cd366e59d21f5507acf2ae3ee5f95707.tar.gz anaconda-04ea8b51cd366e59d21f5507acf2ae3ee5f95707.tar.xz anaconda-04ea8b51cd366e59d21f5507acf2ae3ee5f95707.zip |
todo.py:
1) verifyDeps -- specify how we're adding packages to the
transaction set so that if new packages being installed obsolete
something on the system, and something on the system has a
dependency on that package being installed, that the dependency
problem will appear. (#28069)
2) upgradeMountFilesystems -- read in the fstab so testing upgrades work
upgrade.py:
mountRootPartition -- use instPath - hardcoding /mnt/sysimage is bad bad.
-rw-r--r-- | todo.py | 9 | ||||
-rw-r--r-- | upgrade.py | 2 |
2 files changed, 9 insertions, 2 deletions
@@ -1048,9 +1048,13 @@ class ToDo: else: ts = rpm.TransactionSet() + if self.upgrade: + how = 'u' + else: + how = 'i' for p in self.hdList.packages.values (): if p.selected: - ts.add(p.h, (p.h, p.h[rpm.RPMTAG_NAME])) + ts.add(p.h, (p.h, p.h[rpm.RPMTAG_NAME]), how) else: ts.add(p.h, (p.h, p.h[rpm.RPMTAG_NAME]), "a") @@ -1172,6 +1176,9 @@ class ToDo: message = message + '\t' + n + '\n' self.intf.messageWindow(("Absolute Symlinks"), message) sys.exit(0) + else: + fstab.readFstab(self.instPath + '/etc/fstab', self.fstab) + self.fstab.turnOnSwap(self.instPath, self.intf.progressWindow, formatSwap = 0) diff --git a/upgrade.py b/upgrade.py index de83f4efc..142ddf6c7 100644 --- a/upgrade.py +++ b/upgrade.py @@ -85,7 +85,7 @@ def mountRootPartition(intf, rootInfo, theFstab, instPath, allowDirty = 0, else: isys.mount(root, '/mnt/sysimage') - fstab.readFstab('/mnt/sysimage/etc/fstab', theFstab) + fstab.readFstab(instPath + '/etc/fstab', theFstab) if rootFs == "vfat": fstab.unmountLoopbackRoot() |