I am setting up an automated installer-system to install customized Ubuntu 12 and other operating systems onto disks, which will be removed and then permanently installed into new computers.
The problem is generating grub configuration -- if I run
grub-mkconfig on the installer system, then it will put the UUID of the installer system's disk in rather than the target disk. Is there a way to tell grub-mkconfig which disk I want to use as root? If I chroot to the new system will it use whatever UUID that filesystem seems to be on? Or do I have to resort to
sed to replace the
search commands in grub.cfg?