commit: 3f7cd7ec7bd260060b4a65773b2805912ae9ccfa
parent c67da3eb8e0e46e032592d4b5ffd9712871d3033
Author: Andrius Štikonas <andrius@stikonas.eu>
Date: Thu, 2 Feb 2023 22:47:04 +0000
Merge pull request #235 from nanonyme/stop-at-sysa
Support building only sysa with chroot mode
Diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/rootfs.py b/rootfs.py
@@ -31,6 +31,7 @@ def create_configuration_file(args):
with open(config_path, "w", encoding="utf_8") as config:
config.write("FORCE_TIMESTAMPS=" + str(args.force_timestamps) + "\n")
config.write("CHROOT=" + str(args.chroot or args.bwrap) + "\n")
+ config.write("CHROOT_ONLY_SYSA=False\n")
config.write("UPDATE_CHECKSUMS=" + str(args.update_checksums) + "\n")
config.write("DISK=sda1\n")
diff --git a/sysa/run.sh b/sysa/run.sh
@@ -250,4 +250,6 @@ fi
# In chroot mode transition directly into System C.
SYSC=/sysc_image
sys_transfer "${SYSC}" /sysc gzip patch
-exec chroot "${SYSC}" /init
+if [ "${CHROOT_ONLY_SYSA}" != True ]; then
+ exec chroot "${SYSC}" /init
+fi