From b3c30b2a85b6764f840c846360d1ac9b87e583e2 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 7 May 2011 00:28:57 -0300 Subject: Grub cleanup --- share/hydractl/provision | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'share/hydractl/provision') 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 -- cgit v1.2.3