<>

3.4. $WORK/iso/install/misc/mkgrub

#!/bin/sh
mount --bind /dev $LFS/dev &&
chroot $LFS \
  bash -c "echo -e 'root (hd0,1)\nsetup (hd0)\nquit' | /usr/sbin/grub" &&
umount $LFS/dev