debianzfs/scripts/autoinstall.exp

13 lines
301 B
Plaintext
Raw Normal View History

2022-09-25 03:11:29 +00:00
#!/usr/bin/expect
set timeout -1
spawn sudo /tmp/debianzfs.sh /dev/vda
expect "You selected to OVERWRITE '/dev/vda' as hostname 'debianzfs', are you sure? \\\[y/N] "
send "y\r"
expect "Enter passphrase:"
send "password123\r"
expect "Re-enter passphrase:"
send "password123\r"
expect "theunexpected"