mirror of
https://github.com/containers/bootc.git
synced 2026-02-05 15:45:53 +01:00
Use 'system-reinstall-bootc' to re-install TF runner from package mode to image mode Signed-off-by: Xiaofeng Wang <henrywangxf@me.com>
32 lines
849 B
Plaintext
Executable File
32 lines
849 B
Plaintext
Executable File
#!/usr/bin/expect -f
|
|
|
|
# Set a timeout
|
|
set timeout 600
|
|
|
|
spawn system-reinstall-bootc localhost/bootc-integration
|
|
|
|
expect {
|
|
"Then you can login as * using those keys. \\\[Y/n\\\]" {
|
|
send "\r"
|
|
exp_continue
|
|
}
|
|
"NOTICE: This will replace the installed operating system and reboot. Are you sure you want to continue? \\\[y/N\\\]" {
|
|
send "y"
|
|
exp_continue
|
|
}
|
|
"NOTICE: This will replace the installed operating system and reboot. Are you sure you want to continue? \\\[Y/n\\\]" {
|
|
send "\r"
|
|
exp_continue
|
|
}
|
|
"Press \\\<enter\\\> to continue" {
|
|
send "\r"
|
|
exp_continue
|
|
}
|
|
"Operation complete, rebooting in 10 seconds. Press Ctrl-C to cancel reboot, or press enter to continue immediately" {
|
|
send "\x03"
|
|
}
|
|
}
|
|
|
|
# Wait for the program to complete
|
|
expect eof
|