help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

search by PARTUUID


From: Urs Ritzmann
Subject: search by PARTUUID
Date: Tue, 10 Apr 2018 14:25:01 +0000

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]