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..."
# 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