]> code.ossystems Code Review - openembedded-core.git/commit
populate-volatile.sh: remove repeated leading slashes in TNAME
authorJonathan Liu <net147@gmail.com>
Wed, 22 May 2013 23:37:07 +0000 (09:37 +1000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 24 May 2013 13:07:03 +0000 (14:07 +0100)
commitaf56670f656ec0989aa7fd6cf6037cbc9cd88185
treee4072b68296bf4f38a07e167d2093bcbedcf97c8
parentc11ba731fb245683148d0a8485b8c4d73bf94c28
populate-volatile.sh: remove repeated leading slashes in TNAME

This avoids triple slashes in the generated /etc/volatile.cache to
reduce disk usage and in the output when verbose mode is enabled.

As all the paths for volatiles start with a slash, we can change
TNAME=${ROOT_DIR}/${TNAME} to TNAME=${ROOT_DIR}${TNAME}. To avoid
a double slash when ROOT_DIR is /, we strip the extra slash from
ROOT_DIR.

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-core/initscripts/initscripts-1.0/populate-volatile.sh