Merge pull request #63 from stikonas/expect

Launch interactive bash at the end of bootstrap.
This commit is contained in:
fosslinux 2021-03-15 07:10:04 +11:00 committed by GitHub
commit fbceb63248
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -7,6 +7,9 @@
set timeout -1
spawn ./rootfs.sh qemu-system-x86_64 3500M
expect -exact {not syncing: Attempted to kill init}
expect {
"not syncing: Attempted to kill init" {}
"Bootstrapping completed." {}
}
send -- "\x01"
send -- "x"

View File

@ -10,3 +10,5 @@ set -e
. helpers.sh
echo "Bootstrapping completed."
exec env - PATH=/after/bin bash -i