From: Ricardo Salveti Date: Fri, 9 Feb 2018 01:41:18 +0000 (-0200) Subject: initramfs-framework: rootfs: add support for LABEL X-Git-Tag: uninative-1.8~347 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=037255f3c448bfc05f3e7373e1ddeee4bbea2164;p=openembedded-core.git initramfs-framework: rootfs: add support for LABEL The rootfs can also be found via the partition label. Signed-off-by: Ricardo Salveti Signed-off-by: Ross Burton --- diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/rootfs b/meta/recipes-core/initrdscripts/initramfs-framework/rootfs index 14768f1cd4..76fa84d354 100644 --- a/meta/recipes-core/initrdscripts/initramfs-framework/rootfs +++ b/meta/recipes-core/initrdscripts/initramfs-framework/rootfs @@ -31,6 +31,11 @@ rootfs_run() { bootparam_root="/dev/disk/by-partuuid/$root_uuid" fi + if [ "`echo ${bootparam_root} | cut -c1-6`" = "LABEL=" ]; then + root_label=`echo $bootparam_root | cut -c7-` + bootparam_root="/dev/disk/by-label/$root_label" + fi + if [ -e "$bootparam_root" ]; then flags="" if [ -n "$bootparam_ro" ] && ! echo "$bootparam_rootflags" | grep -w -q "ro"; then