diff --git a/build.sh b/build.sh index 79fff41..4dd2c99 100644 --- a/build.sh +++ b/build.sh @@ -100,7 +100,7 @@ sleep 2 waitForText "$VM_LOGIN_TAG" sleep 2 -inputKeys "string root; enter" +inputKeys "string root; enter; enter" sleep 2 diff --git a/conf/omnios-r151048.conf b/conf/omnios-r151048.conf index 7c8a634..bf37302 100644 --- a/conf/omnios-r151048.conf +++ b/conf/omnios-r151048.conf @@ -6,16 +6,17 @@ VM_OS_TYPE="omnios" VM_SSH_PORT=2222 VM_RELEASE=r151048 -VM_LOGIN_TAG="64 (freebsd) (tty" +VM_LOGIN_TAG="omnios console login" VM_SHUTDOWN_CMD="/sbin/shutdown -p now" -VM_INSTALL_CMD="pkg install -y " +VM_INSTALL_CMD="pkg install " VM_RSYNC_PKG="rsync" -VM_SSHFS_PKG="fusefs-sshfs && kldload fusefs" +VM_SSHFS_PKG="" VM_PRE_INSTALL_PKGS="tree" +VM_OCR=py VM_OPTS="conf/omnios-r151048.opts.txt" diff --git a/conf/omnios-r151048.opts.txt b/conf/omnios-r151048.opts.txt index e69de29..14eb711 100644 --- a/conf/omnios-r151048.opts.txt +++ b/conf/omnios-r151048.opts.txt @@ -0,0 +1,42 @@ + + +US-English | enter + +#Welcome to the OmniOS installer +Welcome to | enter + + +Select disks for installation | space; sleep 1; enter + + + +Continue | enter; sleep 3; enter + + + +#Please identify a location so that time zone rules can be set correctly + +location | enter + + +#Is the above information OK +information | enter + + +Installation Complete | enter + + +Welcome to | enter + + + + +OmniOS configuration menu | string c; enter;string c; enter; enter + + +OmniOS configuration menu | string s; string s; enter; enter; string h; enter + + + + + diff --git a/enablessh.txt b/enablessh.txt index ec9133d..b1886fb 100644 --- a/enablessh.txt +++ b/enablessh.txt @@ -1,24 +1,6 @@ - - - - -echo 'sshd_enable="YES"' >>/etc/rc.conf - -service sshd start - - -service sendmail stop -echo 'sendmail_enable="NONE"' >>/etc/rc.conf -echo 'sendmail_submit_enable="NO"' >>/etc/rc.conf -echo 'sendmail_outbound_enable="NO"' >>/etc/rc.conf -echo 'sendmail_msp_queue_enable="NO"' >>/etc/rc.conf - - - - echo '' >> /etc/ssh/sshd_config echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config @@ -32,7 +14,7 @@ echo 'AcceptEnv *' >> /etc/ssh/sshd_config ssh-keygen -t rsa -f ~/.ssh/id_rsa -q -N '' -service sshd restart +sudo svcadm restart ssh