aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshare/hydractl/provision3
1 files changed, 2 insertions, 1 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision
index 2eec2a3..e31b195 100755
--- a/share/hydractl/provision
+++ b/share/hydractl/provision
@@ -84,7 +84,7 @@ echo LANG=C > /tmp/debootstrap/etc/default/locale
echo "Applying initial upgrades..."
chroot /tmp/debootstrap/ apt-get update
chroot /tmp/debootstrap/ apt-get upgrade -y
-chroot /tmp/debootstrap/ apt-get install locales cryptsetup lvm2 initramfs-tools grub -y
+chroot /tmp/debootstrap/ apt-get install locales cryptsetup lvm2 initramfs-tools -y
# Crypttab.
echo "Configuring crypttab..."
@@ -110,6 +110,7 @@ echo "$device""2 /boot ext3 defaults,errors=remount-ro 0 2" >> /tmp/debootstrap/
# Grub.
if [ "$grub" == "y" ]; then
echo "Setting up GRUB..."
+ chroot /tmp/debootstrap/ apt-get install grub-pc -y
grub-install --no-floppy "$device"
mkdir -p /tmp/debootstrap/boot/grub/
cat /tmp/debootstrap/boot/grub/menu.lst <<-EOF