mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-23 19:46:31 +01:00
refactor+docs(payload.img, payload.img discovery): split offline distfiles at improve: import_payload so main image is minimal and payload.img is primary carrier, detect payload.img automaticly using magic number
This commit is contained in:
parent
e20afe69bb
commit
beb9fb12f9
5 changed files with 234 additions and 26 deletions
|
|
@ -71,12 +71,14 @@ with open(config_path, "r", encoding="utf-8") as cfg:
|
|||
if not line.startswith("BUILD_GUIX_ALSO=")
|
||||
and not line.startswith("MIRRORS=")
|
||||
and not line.startswith("MIRRORS_LEN=")
|
||||
and not line.startswith("PAYLOAD_REQUIRED=")
|
||||
]
|
||||
if build_guix_also:
|
||||
lines.append("BUILD_GUIX_ALSO=True\\n")
|
||||
if mirrors:
|
||||
lines.append(f'MIRRORS="{" ".join(mirrors)}"\\n')
|
||||
lines.append(f"MIRRORS_LEN={len(mirrors)}\\n")
|
||||
lines.append("PAYLOAD_REQUIRED=False\\n")
|
||||
with open(config_path, "w", encoding="utf-8") as cfg:
|
||||
cfg.writelines(lines)
|
||||
|
||||
|
|
@ -470,9 +472,10 @@ print(shutil.which('chroot'))
|
|||
arg_list += [
|
||||
'-drive', 'file=' + target.get_disk("external") + ',format=raw',
|
||||
]
|
||||
if target.get_disk("payload") is not None:
|
||||
payload_disk = target.get_disk("payload")
|
||||
if payload_disk is not None:
|
||||
arg_list += [
|
||||
'-drive', 'file=' + target.get_disk("payload") + ',format=raw',
|
||||
'-drive', 'file=' + payload_disk + ',format=raw',
|
||||
]
|
||||
arg_list += [
|
||||
'-machine', 'kernel-irqchip=split',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue