]> code.ossystems Code Review - openembedded-core.git/commit
initscripts: check if swapon/swapoff exists before executing them
authorMing Liu <peter.x.liu@external.atlascopco.com>
Thu, 26 May 2016 21:14:33 +0000 (23:14 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 30 May 2016 08:30:33 +0000 (09:30 +0100)
commit2cb1142710cc2beb762c4c2b8edd44d3a97dafa0
tree556f9c90d73645c618e0f827a9c6f92d216d3f5d
parent4afee787e455ce1d4c002cd5c003182f1fc50028
initscripts: check if swapon/swapoff exists before executing them

Not all built images contain swapon/swapoff, for instance, it is
configurable with or without them in busybox. So it'd better to check if
they exist or not before executing them.

Redirecting the potential errors to /dev/null is not good enough, which
might suppress the *real* errors.

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/initscripts/initscripts-1.0/checkroot.sh
meta/recipes-core/initscripts/initscripts-1.0/mountall.sh
meta/recipes-core/initscripts/initscripts-1.0/umountfs