From 56cab8bb71bcd0b23ca360fe496f689dd19438c6 Mon Sep 17 00:00:00 2001 From: Seppo Yli-Olli Date: Wed, 1 Feb 2023 17:55:51 +0200 Subject: [PATCH] Support building only sysa with chroot mode This is intended primarily for external build systems that directly bind into sysa and sysc rather than using rootfs Python wrapper. --- rootfs.py | 1 + sysa/run.sh | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/rootfs.py b/rootfs.py index 5a49208..7717a2b 100755 --- 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 index 6463d58..7428e7d 100755 --- 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