mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-13 06:45:24 +01:00
Keep chroot indication only in prepare()
It's not actually needed by other methods.
This commit is contained in:
parent
7040b550a9
commit
c429cf9dd7
4 changed files with 9 additions and 13 deletions
7
sysa.py
7
sysa.py
|
|
@ -33,14 +33,13 @@ class SysA(SysGeneral):
|
|||
self.cache_dir = os.path.join(self.sys_dir, 'distfiles')
|
||||
self.sysb_dir = sysb_dir
|
||||
self.sysc_tmp = sysc_tmp
|
||||
self.chroot = chroot
|
||||
|
||||
self.prepare()
|
||||
self.prepare(chroot)
|
||||
|
||||
if not chroot:
|
||||
self.make_initramfs()
|
||||
|
||||
def prepare(self):
|
||||
def prepare(self, chroot):
|
||||
"""
|
||||
Prepare directory structure for System A.
|
||||
We create an empty tmpfs, unpack stage0-posix.
|
||||
|
|
@ -54,7 +53,7 @@ class SysA(SysGeneral):
|
|||
# sysb must be added to sysa as it is another initramfs stage
|
||||
self.sysb()
|
||||
|
||||
if self.chroot:
|
||||
if chroot:
|
||||
self.sysc()
|
||||
|
||||
def sysa(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue