debianzfs/scripts/autoinstall.exp
2022-09-24 23:11:29 -04:00

13 lines
301 B
Plaintext

#!/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"