Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora SELinux Support (http://www.linux-archive.org/fedora-selinux-support/)
-   -   Copy install.img to install target on http installs. (http://www.linux-archive.org/fedora-selinux-support/365455-copy-install-img-install-target-http-installs.html)

Peter Jones 05-03-2010 03:01 PM

Copy install.img to install target on http installs.
 
This ensures that the code in AnacondaBackend.mountInstallImage() will
actually work on all http installs, not just the low memory ones.
---
backend.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/backend.py b/backend.py
index 3744e88..32533cb 100644
--- a/backend.py
+++ b/backend.py
@@ -162,6 +162,7 @@ class AnacondaBackend:
self._loopbackFile = "%s%s/rhinstall-install.img" % (anaconda.rootPath,
free[-1][0])
try:
+ log.info("transferring install image to install target")
win = anaconda.intf.waitWindow(_("Copying File"),
_("Transferring install image to hard drive"))
shutil.copyfile(installimg, self._loopbackFile)
@@ -204,8 +205,7 @@ class AnacondaBackend:
# installs that don't use /mnt/stage2 hold the install.img on
# a tmpfs, free this ram if things are tight.
stage2img = "/tmp/install.img"
- if os.path.exists(stage2img) and iutil.memAvailable() < isys.MIN_GUI_RAM:
- log.info("%s exists and low memory" % stage2img )
+ if os.path.exists(stage2img):
# free up /tmp for more memory before yum is called,
if self.mountInstallImage(anaconda, stage2img):
return DISPATCH_BACK
--
1.7.0.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 01:18 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.