From bb067d2856237dc2b947c016a48b1e95c93b5300 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Stefanik?= Date: Thu, 28 Dec 2023 07:25:35 +0100 Subject: [PATCH] Fix "Bootstrapping" message being printed too late in bwrap runs This should be printed at the beginning, but instead is only shown at the end, due to output buffering - force an explicit flush. --- rootfs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootfs.py b/rootfs.py index a08d27d..5a9e798 100755 --- a/rootfs.py +++ b/rootfs.py @@ -168,7 +168,7 @@ def main(): def bootstrap(args, generator, target, size): """Kick off bootstrap process.""" - print(f"Bootstrapping {args.arch}") + print(f"Bootstrapping {args.arch}", flush=True) if args.chroot: find_chroot = """ import shutil