Prepare-overlay service: check for mountpoint before removing workdir

The service was getting called twice, resulting in a removal of the
overlayfs workdir while the overlay was mounted. Solve this by checking
if the /etc overlay is mounted yet before removing the workdir. Need to
add mountpoint to busybox for this.

Resolves openbmc/openbmc#2429

Change-Id: I407a07dcc3f3856af12a7f3a52966fe7c3d756c3
Signed-off-by: Edward A. James <eajames@us.ibm.com>
3 files changed
tree: ea71dab96379f40b91ef9382b743580cb0a71523
  1. classes/
  2. common/
  3. conf/
  4. COPYING.apache-2.0
  5. COPYING.MIT
  6. LICENSE