[oe-commits] [openembedded-core] 38/40: initramfs-framework: Add support for PartUUIDs

git at git.openembedded.org git at git.openembedded.org
Thu Jul 7 12:39:29 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 7953265570ad04d715033f8d90e2207a101e97a0
Author: Igor Stoppa <igor.stoppa at intel.com>
AuthorDate: Fri Jul 1 15:53:52 2016 +0200

    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 <igor.stoppa at intel.com>
    Signed-off-by: Patrick Ohly <patrick.ohly at intel.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/recipes-core/initrdscripts/initramfs-framework/rootfs | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/rootfs b/meta/recipes-core/initrdscripts/initramfs-framework/rootfs
index 5790d8c..14768f1 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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list