mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-23 11:36:32 +01:00
Add QEMU CI workflow
This commit is contained in:
parent
5ea8dd3136
commit
777d06b99e
2 changed files with 106 additions and 0 deletions
24
ci-qemu.expect
Executable file
24
ci-qemu.expect
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
#!/usr/bin/expect
|
||||
|
||||
# SPDX-FileCopyrightText: 2023 fosslinux <fosslinux@aussies.space>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
set timeout -1
|
||||
|
||||
spawn python3 rootfs.py --qemu-cmd qemu-system-x86_64 --qemu-ram 3500 --preserve
|
||||
|
||||
expect {
|
||||
"not syncing: Attempted to kill init" {
|
||||
send -- "\x01"
|
||||
send -- "x"
|
||||
spawn false
|
||||
}
|
||||
"Bootstrapping completed." {
|
||||
send -- "\x01"
|
||||
send -- "x"
|
||||
spawn true
|
||||
}
|
||||
}
|
||||
catch wait result
|
||||
exit [lindex $result 3]
|
||||
Loading…
Add table
Add a link
Reference in a new issue