Runs grub-install with /mnt/rootfs as root, reinstalling the bootloader on /dev/sda for the system mounted there. Essential after replacing a disk or when a system refuses to boot. The chroot must contain the grub packages and have the target system's /dev and /proc mounted.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.