[PATCH 0/2] Install to any directory

Vratislav Podzimek vpodzime at redhat.com
Wed Mar 12 06:56:59 UTC 2014


On Tue, 2014-03-11 at 16:02 -0700, Brian C. Lane wrote:
> With the variety of places people want to use Anaconda it would be useful if it
> wasn't limited to /mnt/sysimage/ as the destination for a --dirinstall. The
> problem is that ROOT_PATH is plumbed into the depths of the system and ripping
> it out would result in a mess, passing the path all over the place.
> 
> So let's simply override it in constants.
> 
> I'd like to be able to set it from the cmdline, but alas constants is imported
> very early in the process, so I present this kludge:
> 
> anaconda --dirinstall will get you a /mnt/sysimage/ install. But set
> ANACONDA_ROOT_PATH before calling anaconda and you can redirect it to the
> location of your choosing.
> 
> (note these are against the rhel7 branch, just because that's what I had handy
> to play with, they should work the same on master).
> 
> Brian C. Lane (2):
>   Override ROOT_PATH with environmental variable
>   Use ROOT_PATH not /mnt/sysimage
> 
>  data/anaconda_options.txt | 4 +++-
>  pyanaconda/constants.py   | 3 ++-
>  pyanaconda/exception.py   | 8 ++++----
>  pyanaconda/users.py       | 6 +++---
>  4 files changed, 12 insertions(+), 9 deletions(-)
These both look good to me.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list