From 1ab2ca141d3defe4b80212e28ac7c3f2271e2515 Mon Sep 17 00:00:00 2001 From: Igor Stoppa Date: Fri, 1 Jul 2016 15:53:52 +0200 Subject: initramfs-framework: Add support for PartUUIDs The rootfs can be addressed also by referring to the PartUUID value from the GPT. This patch enables such type of reference. Signed-off-by: Igor Stoppa Signed-off-by: Patrick Ohly Signed-off-by: Ross Burton --- meta/recipes-core/initrdscripts/initramfs-framework/rootfs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'meta/recipes-core/initrdscripts/initramfs-framework') diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/rootfs b/meta/recipes-core/initrdscripts/initramfs-framework/rootfs index 5790d8cb8b..14768f1cd4 100644 --- a/meta/recipes-core/initrdscripts/initramfs-framework/rootfs +++ b/meta/recipes-core/initrdscripts/initramfs-framework/rootfs @@ -26,6 +26,11 @@ rootfs_run() { bootparam_root="/dev/disk/by-uuid/$root_uuid" fi + if [ "`echo ${bootparam_root} | cut -c1-9`" = "PARTUUID=" ]; then + root_uuid=`echo $bootparam_root | cut -c10-` + bootparam_root="/dev/disk/by-partuuid/$root_uuid" + fi + if [ -e "$bootparam_root" ]; then flags="" if [ -n "$bootparam_ro" ] && ! echo "$bootparam_rootflags" | grep -w -q "ro"; then -- cgit 1.2.3-korg