# vim: filetype=sh

prepare_rootfs()
{
    if [ "$2" = "inside" ]
    then
        # if update-grub is called as part of the package installation
        # it should properly find our virtual device.
        # (we will properly install the bootloader on the final device
        # anyway, this is only useful to avoid warnings)
        update_grup_device_map
    fi
}

cleanup_rootfs()
{
    if [ "$2" = "inside" ]
    then
        rm boot/grub/device.map
    fi
}
