diff options
author | Peter Jones <pjones@redhat.com> | 2005-04-11 23:12:44 +0000 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2005-04-11 23:12:44 +0000 |
commit | 0d04a446f33c1f23d7af22ad76c1123c34ea5d6b (patch) | |
tree | bd71a45d8ffb4b9f815f5551dd73d23769437e73 /upgrade.py | |
parent | beae88542cf4e13107268f689fb5f1e06137913b (diff) | |
download | anaconda-0d04a446f33c1f23d7af22ad76c1123c34ea5d6b.tar.gz anaconda-0d04a446f33c1f23d7af22ad76c1123c34ea5d6b.tar.xz anaconda-0d04a446f33c1f23d7af22ad76c1123c34ea5d6b.zip |
Make upgrades find their devices.
add to changelog
bump version
Diffstat (limited to 'upgrade.py')
-rw-r--r-- | upgrade.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/upgrade.py b/upgrade.py index ba121222d..095a3cd79 100644 --- a/upgrade.py +++ b/upgrade.py @@ -146,6 +146,10 @@ def mountRootPartition(intf, rootInfo, oldfsset, instPath, allowDirty = 0, not oldfsset.getEntryByMountPoint("/").fsystem.isMountable()): raise RuntimeError, "/etc/fstab did not list a fstype for the root partition which we support" +def bindMountDevDirectory(instPath): + fs = fsset.fileSystemTypeGet("bind") + fs.mount("/dev", "%s/dev" % (instPath,), bindMount=1) + # returns None if no filesystem exist to migrate def upgradeMigrateFind(dispatch, thefsset): migents = thefsset.getMigratableEntries() @@ -313,6 +317,7 @@ def upgradeMountFilesystems(intf, rootInfo, oldfsset, instPath): intf.messageWindow(_("Invalid Directories"), message) sys.exit(0) + bindMountDevDirectory(instPath) else: if not os.access (instPath + "/etc/fstab", os.R_OK): rc = intf.messageWindow(_("Warning"), |