summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/initrdscripts/initramfs-framework/finish
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/initrdscripts/initramfs-framework/finish')
-rwxr-xr-xmeta/recipes-core/initrdscripts/initramfs-framework/finish5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/finish b/meta/recipes-core/initrdscripts/initramfs-framework/finish
index bedd803f10..325f47be40 100755
--- a/meta/recipes-core/initrdscripts/initramfs-framework/finish
+++ b/meta/recipes-core/initrdscripts/initramfs-framework/finish
@@ -16,8 +16,9 @@ finish_run() {
16 if [ -n "$bootparam_root" ]; then 16 if [ -n "$bootparam_root" ]; then
17 debug "No e2fs compatible filesystem has been mounted, mounting $bootparam_root..." 17 debug "No e2fs compatible filesystem has been mounted, mounting $bootparam_root..."
18 18
19 if [ "${bootparam_root:0:5}" = "UUID=" ]; then 19 if [ "`echo ${bootparam_root} | cut -c1-5`" = "UUID=" ]; then
20 bootparam_root="/dev/disk/by-uuid/${bootparam_root/UUID=/}" 20 root_uuid=`echo $bootparam_root | cut -c6-`
21 bootparam_root="/dev/disk/by-uuid/$root_uuid"
21 fi 22 fi
22 23
23 if [ -e "$bootparam_root" ]; then 24 if [ -e "$bootparam_root" ]; then