diff options
-rw-r--r-- | src/GLIArchitectureTemplate.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/GLIArchitectureTemplate.py b/src/GLIArchitectureTemplate.py index 88e5c59..b4397da 100644 --- a/src/GLIArchitectureTemplate.py +++ b/src/GLIArchitectureTemplate.py @@ -453,10 +453,14 @@ class ArchitectureTemplate: GLIUtility.spawn("chmod 755 /tmp/extrastuff.sh && /tmp/extrastuff.sh", chroot=self._chroot_dir, display_on_tty8=True, logfile=self._compile_logfile, append_log=True) GLIUtility.spawn("rm -rf /var/tmp/portage/* /usr/portage /tmp/*", chroot=self._chroot_dir) self.notify_frontend("progress", (1, "Done")) + if not GLIUtility.is_file("/etc/make.conf"): + raise GLIException("CreateStage3Error", "fatal", "unpack_stage_tarball", "Something went wrong during stage3 generation, /etc/make.conf doesn't exist on the new system! ") self._logger.log("Stage3 was generated successfully") else: self._logger.log("Fetching and unpacking tarball: "+self._install_profile.get_stage_tarball_uri()) GLIUtility.fetch_and_unpack_tarball(self._install_profile.get_stage_tarball_uri(), self._chroot_dir, temp_directory=self._chroot_dir, keep_permissions=True, cc=self._cc) + if not GLIUtility.is_file("/etc/make.conf"): + raise GLIException("CreateStage3Error", "fatal", "unpack_stage_tarball", "Something went wrong during stage3 generation, /etc/make.conf doesn't exist on the new system! ") self._logger.log(self._install_profile.get_stage_tarball_uri()+" was fetched and unpacked.") ## |