aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshare/hydractl/provision12
1 files changed, 6 insertions, 6 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision
index 1d0ae6b..19daad7 100755
--- a/share/hydractl/provision
+++ b/share/hydractl/provision
@@ -77,8 +77,8 @@ echo LANG=C > /tmp/debootstrap/etc/default/locale
# Initial upgrade.
echo "Applying initial upgrades..."
chroot /tmp/debootstrap/ apt-get update
-chroot /tmp/debootstrap/ apt-get upgrade
-chroot /tmp/debootstrap/ apt-get install locales cryptsetup lvm2 initramfs-tools grub
+chroot /tmp/debootstrap/ apt-get upgrade -y
+chroot /tmp/debootstrap/ apt-get install locales cryptsetup lvm2 initramfs-tools grub -y
# Crypttab.
echo "Configuring crypttab..."
@@ -139,7 +139,7 @@ else
kernel_arch="$arch"
fi
-chroot /tmp/debootstrap apt-get install linux-image-2.6-vserver-$kernel_arch
+chroot /tmp/debootstrap apt-get install linux-image-2.6-vserver-$kernel_arch -y
# Initramfs.
echo "Creating initramfs..."
@@ -147,11 +147,11 @@ chroot /tmp/debootstrap update-initramfs -v -u
# Utils.
echo "Installing basic utilities..."
-chroot /tmp/debootstrap apt-get install screen cron lsb-release openssl
+chroot /tmp/debootstrap apt-get install screen cron lsb-release openssl -y
# Ssh.
echo "Installing OpenSSH daemon..."
-chroot /tmp/debootstrap apt-get install openssh-server
+chroot /tmp/debootstrap apt-get install openssh-server -y
echo "OpenSSH fingerprints:"
chroot /tmp/debootstrap ssh-keygen -l -f /etc/ssh/ssh_host_dsa_key.pub
@@ -159,7 +159,7 @@ chroot /tmp/debootstrap ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub
# Accounts.
echo "Installing sudo..."
-chroot /tmp/debootstrap apt-get install sudo
+chroot /tmp/debootstrap apt-get install sudo -y
echo "Choose a root password."
chroot /tmp/debootstrap passwd root