diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2013-08-02 15:48:47 +0800 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2013-08-05 23:59:53 -0700 |
commit | e6039e6e3b98d6ab91252a5012d76279b1fac6e8 (patch) | |
tree | 8ae7f0ce390018bda54c419ed78d20b3ba855d12 /meta/recipes-core/initrdscripts/initramfs-framework/finish | |
parent | 53d87253ac53a1ee54843f52c38a116cdcb86f7e (diff) | |
download | openembedded-core-contrib-e6039e6e3b98d6ab91252a5012d76279b1fac6e8.tar.gz |
initramfs-framework: fix bashism
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-core/initrdscripts/initramfs-framework/finish')
-rwxr-xr-x | meta/recipes-core/initrdscripts/initramfs-framework/finish | 5 |
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() { if [ -n "$bootparam_root" ]; then debug "No e2fs compatible filesystem has been mounted, mounting $bootparam_root..." - if [ "${bootparam_root:0:5}" = "UUID=" ]; then - bootparam_root="/dev/disk/by-uuid/${bootparam_root/UUID=/}" + if [ "`echo ${bootparam_root} | cut -c1-5`" = "UUID=" ]; then + root_uuid=`echo $bootparam_root | cut -c6-` + bootparam_root="/dev/disk/by-uuid/$root_uuid" fi if [ -e "$bootparam_root" ]; then |