]> gitweb.fluxo.info Git - hydra.git/commitdiff
Grub cleanup
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 7 May 2011 03:28:57 +0000 (00:28 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 7 May 2011 03:28:57 +0000 (00:28 -0300)
share/hydractl/provision

index 2eec2a3235bc0f567780cfc13e1344f31bdf8dbd..e31b195e778efee005b5a7b69ef3dd873878f102 100755 (executable)
@@ -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