From: Silvio Rhatto Date: Sat, 7 May 2011 03:28:57 +0000 (-0300) Subject: Grub cleanup X-Git-Tag: 0.1~334 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=b3c30b2a85b6764f840c846360d1ac9b87e583e2;p=hydra.git Grub cleanup --- 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