mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-09 21:05:24 +01:00
Split "chroot" into "copy_sysc" and "create_initramfs" in sysa's prepare()
These better describe the actions, and will make more sense with the addition of the rootless bootstrap mode which would make use of these preparation steps.
This commit is contained in:
parent
7075c901a9
commit
a7c7ddf977
1 changed files with 5 additions and 4 deletions
9
sysa.py
9
sysa.py
|
|
@ -34,9 +34,9 @@ class SysA(SysGeneral):
|
|||
self.sysb_dir = sysb_dir
|
||||
self.sysc_tmp = sysc_tmp
|
||||
|
||||
self.prepare(chroot)
|
||||
self.prepare(chroot, not chroot)
|
||||
|
||||
def prepare(self, chroot):
|
||||
def prepare(self, copy_sysc, create_initramfs):
|
||||
"""
|
||||
Prepare directory structure for System A.
|
||||
We create an empty tmpfs, unpack stage0-posix.
|
||||
|
|
@ -50,9 +50,10 @@ class SysA(SysGeneral):
|
|||
# sysb must be added to sysa as it is another initramfs stage
|
||||
self.sysb()
|
||||
|
||||
if chroot:
|
||||
if copy_sysc:
|
||||
self.sysc()
|
||||
else:
|
||||
|
||||
if create_initramfs:
|
||||
self.make_initramfs()
|
||||
|
||||
def sysa(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue