write grub2 to mbr with chroot

hi

need to write grub2 mbr?

mount --bind /dev /chroot/dev
mount -t sysfs none /chroot/sys
mount -t proc none /chroot/proc
chroot /chroot/
update-grub2
grub-install /dev/sdx

have fun!