Re: [PATCH] Copy install.img to install target on http installs.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ack.

On Wed, 2010-03-31 at 10:51 -0400, Peter Jones wrote:
> 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 65a6a67..2ec2109 100644
> --- a/backend.py
> +++ b/backend.py
> @@ -159,6 +159,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)
> @@ -201,8 +202,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


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

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux