When building images, we never want to use loop devices, so use
--offline=yes in that case. When booting images, we know that
systemd-nspawn requires loop devices, so require them for
systemd-repart as well using --offline=no.
"--dry-run=no",
"--json=pretty",
"--no-pager",
+ "--offline=yes",
"--root", state.root,
state.staging / state.config.output_with_format,
]
def finalize_image(image: Path, *, size: str) -> None:
- run(["systemd-repart", "--image", image, "--size", size, "--no-pager", "--dry-run=no", image])
+ run(["systemd-repart", "--image", image, "--size", size, "--no-pager", "--dry-run=no", "--offline=no", image])
@contextlib.contextmanager