mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-18 17:25:24 +01:00
Flush stdout before bootstrap
This commit is contained in:
parent
3be90c7afd
commit
ffda41f38a
3 changed files with 5 additions and 1 deletions
2
.github/workflows/qemu.yml
vendored
2
.github/workflows/qemu.yml
vendored
|
|
@ -51,7 +51,7 @@ jobs:
|
||||||
- name: Remount package disk
|
- name: Remount package disk
|
||||||
if: always()
|
if: always()
|
||||||
run: >
|
run: >
|
||||||
DEV=$(sudo losetup -f target/external.img) &&
|
DEV=$(sudo losetup -f --show target/external.img) &&
|
||||||
sudo partprobe ${DEV}p1 &&
|
sudo partprobe ${DEV}p1 &&
|
||||||
mkdir -p mnt &&
|
mkdir -p mnt &&
|
||||||
sudo mount ${DEV}p1 mnt
|
sudo mount ${DEV}p1 mnt
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,9 @@ def run(*args, cleanup=None, **kwargs):
|
||||||
if kwargs.pop('verbose', False):
|
if kwargs.pop('verbose', False):
|
||||||
print(arguments)
|
print(arguments)
|
||||||
|
|
||||||
|
sys.stdout.flush()
|
||||||
|
sys.stderr.flush()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
return subprocess.run(arguments, check=True, **kwargs)
|
return subprocess.run(arguments, check=True, **kwargs)
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ you can run bootstap inside chroot.
|
||||||
import argparse
|
import argparse
|
||||||
import os
|
import os
|
||||||
import signal
|
import signal
|
||||||
|
import sys
|
||||||
import threading
|
import threading
|
||||||
|
|
||||||
from lib.generator import Generator, stage0_arch_map
|
from lib.generator import Generator, stage0_arch_map
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue