I'm trying to make a Debian installation manually from scratch to an external disk within a live Debian CD.
I created a Debian Stretch rootfs via multistrap by following the instructions from here (44fbcc).
Inside chroot environment, when it comes to Grub installation, I install the Grub2 to MBR:
debian:~# grub-install /dev/sdX --boot-directory=/boot
Command runs without error. When I need to create the /boot/grub/grub.cfg, it throws the following error:
debian:~# grub-mkconfig
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
Yes, /dev is mounted along with /sys, /proc and /run here.
How can I generate grub.cfg inside chroot environment?
/sysmounted in addition to /dev? – icarus Dec 23 '19 at 14:33