testing
This commit is contained in:
13
scripts/autoinstall.exp
Normal file
13
scripts/autoinstall.exp
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/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"
|
7
scripts/setup.sh
Normal file
7
scripts/setup.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
sudo passwd -d user
|
||||
sudo chmod u+x /tmp/debianzfs.sh
|
||||
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y expect
|
Reference in New Issue
Block a user