I am trying to dual boot my laptop with linux alongside windows. Now one of the things I will probably need to do is that first install linux to my desired partition and then boot from a live cd and then select my boot partition and then install and configure grub on my boot partition.
Instructions are listed here.
Now what I find redundant is that why do I need to
chroot if the installation command is as follows -:
What was the use of chrooting or even mounting the linux partitions if grub can just simply install to a partition of my choice from the command line ?
Why would I even mount the virtual filesystems in the following manner -:
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
Is it because when I have booted into live mode from my installation disk the grub files are present in the installed Linux OS that I must access in order for the installation to proceed ? ie. to be able to run
If the grub files are there on the installation media then it seems pretty irrelevant to do the mounting and chrooting ?
Correct me if I am wrong but all that
chroot does is change the root directory of the current and child process, right ?