Where does "grub update " get the swap partition uiid?
Details: When using “grub update” to clean up the redundant item in the grub menu, I found the swap partition was changed into a wrong UIID. This wrong UIID belongs to a partition I don’t use under linux anymore and I formatted it under Win 10. So there is no partition in my computer with that UIID.
When booting, it says the hibernation device “UIID=…” not found, but this won’t be a issue since I can edit the grab.cfg back to the correct swap partition UIID.
I worry that everytime when linux update, “grab update” will change it into a wrong uiid.
I am curious since that is no partition with that uiid anymore, where did “grab update” find this old uiid?
My fstab file has the right UIID, and “grub update” won’t mess that up.