I have several computers with 2 drives (one is ssd, the other is hdd). I've created preseed file for automated deployment that works fine except for the part with partitioning. For now it is done manually but even in this case grub does not work during next boot.
The point is when I boot from usb flash drive, the flash drive itself becomes sda device during the installation process so I put grub to SDB's MBR(which is SSD drive). But after the installation is finished and USB stick is removed SSD disk becomes sda and grub configuration does not work, so I have to manually edit grub config to be able to boot from sda, then boot into the system, change permanent grub configuration file, update grub in order to make machine bootable next time. What is the way to deal with this kind of issue?
How to make preseed:
- Put everything on SSD (it is main drive), auto partition it without creating swap volume, put grub into it.
- Format HDD as ntfs and mount it.
- Everything should work after the reboot without manual tweaking the grub config.