diff options
author | Jeremy Katz <katzj@redhat.com> | 2006-05-18 02:59:45 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2006-05-18 02:59:45 +0000 |
commit | 7bfb685fb9691e6ec0038b7585aa349b6d5642fa (patch) | |
tree | f25ea7ccde0d5f2916eda2af8b04c84c1cdd8b9e /anaconda | |
parent | 26daefb8ee3d05f13a7e759422fad06f7a299e95 (diff) | |
download | anaconda-7bfb685fb9691e6ec0038b7585aa349b6d5642fa.tar.gz anaconda-7bfb685fb9691e6ec0038b7585aa349b6d5642fa.tar.xz anaconda-7bfb685fb9691e6ec0038b7585aa349b6d5642fa.zip |
2006-05-17 Jeremy Katz <katzj@redhat.com>
* anaconda (Anaconda.setMethod): Set up our libuser.conf
* users.py (createLuserConf): Create a libuser.conf that points to
our rootpath so that things work with live CD, etc
Diffstat (limited to 'anaconda')
-rwxr-xr-x | anaconda | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -601,6 +601,7 @@ if __name__ == "__main__": import warnings import rhpl import vnc + import users from flags import flags from rhpl.translate import _, textdomain, addPoPath @@ -679,8 +680,10 @@ if __name__ == "__main__": if rhpl.getArch() == "s390": opts.isHeadless = True + users.createLuserConf(anaconda.rootPath) + # setup links required for all install types - for i in ( "services", "protocol", "nsswitch.conf", "joe", "selinux", "libuser.conf"): + for i in ( "services", "protocol", "nsswitch.conf", "joe", "selinux"): try: if os.path.exists("/mnt/runtime/etc/" + i): os.symlink ("../mnt/runtime/etc/" + i, "/etc/" + i) @@ -945,6 +948,12 @@ if __name__ == "__main__": except: handleException(anaconda, sys.exc_info()) + # remove our libuser.conf + try: + os.unlink(os.environ["LIBUSER_CONF"]) + except: + pass + if anaconda.isKickstart and instClass.ksdata.reboot["eject"]: isys.flushDriveDict() for drive in isys.cdromList(): |