[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH master 1/3] Mount livecd filesystems under /mnt (#683682)
- From: "Brian C. Lane" <bcl redhat com>
- To: anaconda-devel-list redhat com
- Subject: [PATCH master 1/3] Mount livecd filesystems under /mnt (#683682)
- Date: Tue, 15 Mar 2011 14:17:29 -0700
When mounting target filesystems for livecd fs mangling do it outside
the new filesystem so that mountpoints don't leave a mess.
---
pyanaconda/livecd.py | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/pyanaconda/livecd.py b/pyanaconda/livecd.py
index c1918a9..04e7c5c 100644
--- a/pyanaconda/livecd.py
+++ b/pyanaconda/livecd.py
@@ -244,7 +244,7 @@ class LiveCDCopyBackend(backend.AnacondaBackend):
# mount all of the filesystems under /mnt so we can copy in content
_setupFilesystems(anaconda.storage.mountpoints,
- chroot=anaconda.rootPath + "/mnt")
+ chroot="/mnt")
# And now let's do the real copies
for tocopy in mountpoints:
@@ -262,7 +262,7 @@ class LiveCDCopyBackend(backend.AnacondaBackend):
continue
copytree("%s/%s" % (anaconda.rootPath, tocopy),
- "%s/mnt/%s" % (anaconda.rootPath, tocopy),
+ "/mnt/%s" % (tocopy,),
True, True, flags.selinux)
wait.refresh()
shutil.rmtree("%s/%s" % (anaconda.rootPath, tocopy))
@@ -277,14 +277,12 @@ class LiveCDCopyBackend(backend.AnacondaBackend):
continue
try:
- stats[tocopy]= os.stat("%s/mnt/%s" % (anaconda.rootPath,
- tocopy))
+ stats[tocopy]= os.stat("/mnt/%s" % (tocopy,))
except Exception as e:
log.info("failed to get stat info for mountpoint %s: %s"
% (tocopy, e))
- shutil.rmtree("%s/mnt/%s" % (anaconda.rootPath,
- tocopy.split("/")[1]))
+ shutil.rmtree("/mnt/%s" % (tocopy.split("/")[1]))
wait.refresh()
# now mount all of the filesystems so that post-install writes end
--
1.7.4
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]