[Fedora-livecd-list] Why --bind mount /var/cache/yum?

Jeremy Katz katzj at redhat.com
Wed Feb 20 23:13:48 UTC 2008


On Wed, 2008-02-20 at 17:05 -0500, Warren Togami wrote:
> imgcreate/creator.py:
>          # bind mount system directories into _instroot
>          for (f, dest) in [("/sys", None), ("/proc", None), ("/dev", None),
>                            ("/dev/pts", None),
>                            (cachesrc, "/var/cache/yum")]:
>              self.__bindmounts.append(BindChrootMount(f, self._instroot, 
> dest))
> 
> Anyone know why we are --bind mounting /var/cache/yum from the host into 
> the chroot during install when we aren't using it?

We're bind mounting the cache source (which is either the persistent dir
or a directory under the builddir) onto /var/cache/yum, not the
host's /var/cache/yum

Jeremy




More information about the Fedora-livecd-list mailing list