From 0d04a446f33c1f23d7af22ad76c1123c34ea5d6b Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Mon, 11 Apr 2005 23:12:44 +0000 Subject: Make upgrades find their devices. add to changelog bump version --- upgrade.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'upgrade.py') 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"), -- cgit