for device in $SELECTED_PARTITIONS ; do
GRUB=$(grubdevice $device)
einfo "Installing grub on ${GRUB}:"
for device in $SELECTED_PARTITIONS ; do
GRUB=$(grubdevice $device)
einfo "Installing grub on ${GRUB}:"
# Remove temporary mountpoint again
if echo "$MNTPOINT" | grep -q '/mnt/debootstrap\.' ; then
einfo "Removing directory ${MNTPOINT}" ; rmdir "$MNTPOINT" ; eend $?
# Remove temporary mountpoint again
if echo "$MNTPOINT" | grep -q '/mnt/debootstrap\.' ; then
einfo "Removing directory ${MNTPOINT}" ; rmdir "$MNTPOINT" ; eend $?