[gnome-continuous-yocto/gnomeostree-3.28-rocko: 1195/8267] initramfs-framework: Add support for PartUUIDs



commit d6a43d222d547054916a8c55e4ae9ca91a3f0687
Author: Igor Stoppa <igor stoppa intel com>
Date:   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.
    
    (From OE-Core rev: 1ab2ca141d3defe4b80212e28ac7c3f2271e2515)
    
    Signed-off-by: Igor Stoppa <igor stoppa intel com>
    Signed-off-by: Patrick Ohly <patrick ohly intel com>
    Signed-off-by: Ross Burton <ross burton intel com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 .../initrdscripts/initramfs-framework/rootfs       |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
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


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