def chroot_setup(self):
self.makeconf=read_makeconf(normpath(self.settings["chroot_path"]+
- self.settings["make.conf"]))
+ self.settings["make_conf"]))
self.override_cbuild()
self.override_chost()
self.override_cflags()
""" Modify and write out make.conf (for the chroot) """
makepath = normpath(self.settings["chroot_path"] +
- self.settings["make.conf"])
+ self.settings["make_conf"])
cmd("rm -f " + makepath,\
"Could not remove " + makepath, env=self.env)
myf=open(makepath, "w")
myf.close()
makepath = normpath(self.settings["chroot_path"] +
- self.settings["make.conf"])
+ self.settings["make_conf"])
cmd("cp " + makepath + " " + makepath + ".catalyst",\
- "Could not backup " + self.settings["make.conf"],env=self.env)
+ "Could not backup " + self.settings["make_conf"],env=self.env)
touch(self.settings["autoresume_path"]+"chroot_setup")
def fsscript(self):
cmd("rm -rf " + overlay,
"Could not remove " + self.settings["local_overlay"], env=self.env)
cmd("sed -i '/^PORTDIR_OVERLAY/d' "+self.settings["chroot_path"]+\
- self.settings["make.conf"],\
+ self.settings["make_conf"],\
"Could not remove PORTDIR_OVERLAY from make.conf",env=self.env)
""" Clean up old and obsoleted files in /etc """
}
+# please try to avoid using "-", "/", "." in key names
+# due to them not being compatible in the bash environment
confdefaults={
"storedir": "/var/tmp/catalyst",
"sharedir": "/usr/lib/catalyst",
"packagedir": "/usr/portage/packages",
"port_tmpdir": "/var/tmp/portage",
"local_overlay": "/usr/local/portage",
- "make.conf": "/etc/portage/make.conf",
+ "make_conf": "/etc/portage/make.conf",
"options": set(),
"snapshot_name": "portage-",
"snapshot_cache": "/var/tmp/catalyst/snapshot_cache",
"hash_function": "crc32",
}
+
target_mounts = {
"proc": "/proc",
"dev": "/dev",