]> code.ossystems Code Review - openembedded-core.git/commit
base-files: fix handling of resize
authorChen Qi <Qi.Chen@windriver.com>
Wed, 1 Aug 2018 05:25:35 +0000 (13:25 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 14 Aug 2018 10:36:22 +0000 (11:36 +0100)
commit41688279cba3a5afc4fdc65fd245b9bb6ada695e
tree08d8aca3176c80dd6d75eb7379e6b971488c5a1a
parent4af10fe67a31368163bb5d468ee2c5a85ce0fff3
base-files: fix handling of resize

The current handling of resize is incorrect. Using `resize > /dev/null
2>&1 && resize > /dev/null' will cause the second resize command to not
execute because 'resize > /dev/null 2>&1' will fail for resize utility
from busybox.

What we really should do is just to check whether ${bindir}/resize
is executable and execute it if so. Using '-x' is sufficient.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/base-files/base-files/profile
meta/recipes-core/base-files/base-files_3.0.14.bb