commit: bb067d2856237dc2b947c016a48b1e95c93b5300
parent 9afe93298caa0cf66f8ab1336de74da2f9a874a0
Author: Gábor Stefanik <netrolller.3d@gmail.com>
Date: Thu, 28 Dec 2023 07:25:35 +0100
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.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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