On Tue, Sep 6, 2016 at 4:10 PM, Alan McKinnon <alan.mckin...@gmail.com> wrote: > On 06/09/2016 21:39, gevisz wrote: >> >> 2016-09-06 22:08 GMT+03:00 Rich Freeman <ri...@gentoo.org>: >>> >>> On Tue, Sep 6, 2016 at 3:01 PM, gevisz <gev...@gmail.com> wrote: >>>> >>>> >>>> I have already looked into this file but did not find where to set the >>>> UUID of the root partion. >>>> >>> >>> It depends. :) >>> >>> Usually you end up with root=UUID=abc on your kernel command line. It >>> looks like grub-mkconfig is supposed to do this automatically. >> >> >> I do agree and suspect that it is a bug in grub-mkconfig. >> >> Why otherwise adding a new unformatted disk to the system >> should prevent grub from finding a root (and boot :) partition >> if it already been set in fstab? > > Easy. BIOS/efi and/or udev has decided to renumber your drives and give them > different node names. >
Adding a new disk would not affect the UUID of existing disks, so as long as grub-mkconfig is setting them on the command line you won't have this issue. Whether or not there is a bug is another matter. If you tell grub-mkconfig to not use UUID then it will comply. And then renumbering can certainly cause issues. -- Rich