diff options
Diffstat (limited to 'src/GLIArchitectureTemplate.py')
-rw-r--r-- | src/GLIArchitectureTemplate.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/GLIArchitectureTemplate.py b/src/GLIArchitectureTemplate.py index 5154d43..00e1b6b 100644 --- a/src/GLIArchitectureTemplate.py +++ b/src/GLIArchitectureTemplate.py @@ -395,14 +395,10 @@ class ArchitectureTemplate: os.makedirs(self._chroot_dir) if self._install_profile.get_install_stage() == 3 and self._install_profile.get_dynamic_stage3(): # stage3 generation code here - if not GLIUtility.is_file("/usr/livecd/systempkgs.txt"): - raise GLIException("CreateStage3Error", "fatal", "unpack_stage_tarball", "Required file /usr/livecd/systempkgs.txt does not exist") try: - syspkgs = open("/usr/livecd/systempkgs.txt", "r") - systempkgs = [line for line in syspkgs.readlines() if line.strip()] - syspkgs.close() + systempkgs = self._portage.get_system_packages() except: - raise GLIException("CreateStage3Error", "fatal", "unpack_stage_tarball", "Could not open /usr/livecd/systempkgs.txt") + raise GLIException("CreateStage3Error", "fatal", "unpack_stage_tarball", "Could not generate list of system packages") # Pre-create /lib (and possibly /lib32 and /lib64) for libdir in ("/lib", "/usr/lib"): |