[OE-core] [PATCH 2/2] meta-ostro-fixes: initramfs-framework: Add support for PartUUIDs
Patrick Ohly
patrick.ohly at intel.com
Fri Jul 1 13:53:52 UTC 2016
From: Igor Stoppa <igor.stoppa at intel.com>
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>
---
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
--
2.1.4
More information about the Openembedded-core
mailing list