Skip to content

Commit 1b540a2

Browse files
committed
Flush stdout before bootstrap
1 parent 20178be commit 1b540a2

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.github/workflows/qemu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
- name: Remount package disk
5252
if: always()
5353
run: >
54-
DEV=$(sudo losetup -f target/external.img) &&
54+
DEV=$(sudo losetup -f --show target/external.img) &&
5555
sudo partprobe ${DEV}p1 &&
5656
mkdir -p mnt &&
5757
sudo mount ${DEV}p1 mnt

lib/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ def run(*args, cleanup=None, **kwargs):
1919
if kwargs.pop('verbose', False):
2020
print(arguments)
2121

22+
sys.stdout.flush()
23+
sys.stderr.flush()
24+
2225
try:
2326
return subprocess.run(arguments, check=True, **kwargs)
2427
except subprocess.CalledProcessError:

rootfs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import argparse
1818
import os
1919
import signal
20+
import sys
2021
import threading
2122

2223
from lib.generator import Generator, stage0_arch_map

0 commit comments

Comments
 (0)