Say I have a chroot containing what will be a working Linux system, and some additional init scripts to mount an overlay filesystem (e.g. AUFS) over it. I've also generated a GRUB2 boot menu.
What commands would I use to:
- Install the requisite GRUB2 binary files into $CHROOT/boot, without modifying the host MBR
- Generate a bootable ISO from $CHROOT, with GRUB2 as the bootloader
Note that I would rather use GRUB2 than syslinux, because syslinux does not automatically detect kernel and initrd versions.