This commit is contained in:
2022-09-24 23:11:29 -04:00
parent b27680e17e
commit 4c5663b28b
7 changed files with 247 additions and 494 deletions

13
scripts/autoinstall.exp Normal file
View 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
View 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