Hello,

Is there any way to search for the device name by GPT partition UUID or by 
partition label from the GRUB command-line? 

I'd like to search and boot a kernel by GPT partition UUID or partition label. 
For example, my grub.cfg would looks like this:

# The following command sets ${partition_uuid}, 
# i.e.: partition_uuid=14692f4f-bedb-430f-a37f-26b71855945c
load_env

search --partition-uuid --set kernel_partition ${partition_uuid}
kernel_path=(${kernel_partition})/boot/bzImage
linux ${kernel_path} root=PARTUUID=${partition_uuid}
boot

Unfortunately, the search command only supports the filesystem's UUID or label 
(search --partition-uuid is fiction). Is there a way to achieve this?

---
Many Thanks
Urs

_______________________________________________
Help-grub mailing list
Help-grub@gnu.org
https://lists.gnu.org/mailman/listinfo/help-grub

Reply via email to