Flush stdout before bootstrap

This commit is contained in:
Samuel Tyler 2025-10-15 15:01:17 +11:00 committed by Samuel Tyler
parent 3be90c7afd
commit ffda41f38a
No known key found for this signature in database
GPG key ID: EB5091A5C77E8DC4
3 changed files with 5 additions and 1 deletions

View file

@ -51,7 +51,7 @@ jobs:
- name: Remount package disk
if: always()
run: >
DEV=$(sudo losetup -f target/external.img) &&
DEV=$(sudo losetup -f --show target/external.img) &&
sudo partprobe ${DEV}p1 &&
mkdir -p mnt &&
sudo mount ${DEV}p1 mnt

View file

@ -19,6 +19,9 @@ def run(*args, cleanup=None, **kwargs):
if kwargs.pop('verbose', False):
print(arguments)
sys.stdout.flush()
sys.stderr.flush()
try:
return subprocess.run(arguments, check=True, **kwargs)
except subprocess.CalledProcessError:

View file

@ -17,6 +17,7 @@ you can run bootstap inside chroot.
import argparse
import os
import signal
import sys
import threading
from lib.generator import Generator, stage0_arch_map