diff options
| -rw-r--r-- | meta/recipes-core/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 f8c73b9726..748c9391c0 100644 --- a/meta/recipes-core/initrdscripts/initramfs-framework/rootfs +++ b/meta/recipes-core/initrdscripts/initramfs-framework/rootfs | |||
| @@ -36,6 +36,11 @@ rootfs_run() { | |||
| 36 | bootparam_root="/dev/disk/by-partlabel/$root_partlabel" | 36 | bootparam_root="/dev/disk/by-partlabel/$root_partlabel" |
| 37 | fi | 37 | fi |
| 38 | 38 | ||
| 39 | if [ "`echo ${bootparam_root} | cut -c1-10`" = "PARTLABEL=" ]; then | ||
| 40 | root_partlabel=`echo $bootparam_root | cut -c11-` | ||
| 41 | bootparam_root="/dev/disk/by-partlabel/$root_partlabel" | ||
| 42 | fi | ||
| 43 | |||
| 39 | if [ "`echo ${bootparam_root} | cut -c1-6`" = "LABEL=" ]; then | 44 | if [ "`echo ${bootparam_root} | cut -c1-6`" = "LABEL=" ]; then |
| 40 | root_label=`echo $bootparam_root | cut -c7-` | 45 | root_label=`echo $bootparam_root | cut -c7-` |
| 41 | bootparam_root="/dev/disk/by-label/$root_label" | 46 | bootparam_root="/dev/disk/by-label/$root_label" |
