summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/initrdscripts/initramfs-framework/rootfs
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/initrdscripts/initramfs-framework/rootfs')
-rw-r--r--meta/recipes-core/initrdscripts/initramfs-framework/rootfs5
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 76fa84d354..61baf73a60 100644
--- a/meta/recipes-core/initrdscripts/initramfs-framework/rootfs
+++ b/meta/recipes-core/initrdscripts/initramfs-framework/rootfs
@@ -31,6 +31,11 @@ rootfs_run() {
31 bootparam_root="/dev/disk/by-partuuid/$root_uuid" 31 bootparam_root="/dev/disk/by-partuuid/$root_uuid"
32 fi 32 fi
33 33
34 if [ "`echo ${bootparam_root} | cut -c1-10`" = "PARTLABEL=" ]; then
35 root_uuid=`echo $bootparam_root | cut -c11-`
36 bootparam_root="/dev/disk/by-partlabel/$root_uuid"
37 fi
38
34 if [ "`echo ${bootparam_root} | cut -c1-6`" = "LABEL=" ]; then 39 if [ "`echo ${bootparam_root} | cut -c1-6`" = "LABEL=" ]; then
35 root_label=`echo $bootparam_root | cut -c7-` 40 root_label=`echo $bootparam_root | cut -c7-`
36 bootparam_root="/dev/disk/by-label/$root_label" 41 bootparam_root="/dev/disk/by-label/$root_label"