GRUB installation wiki page: Add warning about changed drive labels after reboot
|Assignee||A. Wilcox (awilfox)|
|Reported||2019-01-13 10:00:03 -0600|
|Modified||2019-01-13 10:00:03 -0600|
|Hardware||Adélie Linux / All|
|Importance||--- / minor|
When you're installing Adélie manually from the live system on a USB key, the USB key will be seen as /dev/sda by the system, while your first internal hard drive will be seen as /dev/sdb (it may also be /dev/hda vs. /dev/hdb or /dev/vda vs. /dev/vdb, depending on the hardware).
This will create a problem later, if you run
grub-install --boot-directory=/boot /dev/$disk
with the value of $disk derived from what the currently running live system sees it as (sdb) because once the USB key is removed, the system will see the internal drive as sda.
Now, if the grub.cfg created during installation contains root=/dev/sdb, this will cause a kernel panic because the root fs cannot be found. You'll have to change it back to /dev/sda to work properly.