[PATCH 0/2] Install to any directory

Brian C. Lane bcl at redhat.com
Tue Mar 11 23:02:01 UTC 2014


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(-)

-- 
1.8.5.3



More information about the anaconda-patches mailing list