summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/common
diff options
context:
space:
mode:
authorMilton Miller <miltonm@us.ibm.com>2016-05-23 18:35:21 -0500
committerMilton Miller <miltonm@us.ibm.com>2016-06-23 11:32:31 -0500
commita67cc44670cd5234f8f66db623b7ccbc8d3e976a (patch)
tree65f8a66a650f1b54c4da6a8c80b92a3c389fecb1 /meta-phosphor/common
parente1cbebebac683f1dad53c5037fc3524af5c1b7d0 (diff)
downloadtalos-openbmc-a67cc44670cd5234f8f66db623b7ccbc8d3e976a.tar.gz
talos-openbmc-a67cc44670cd5234f8f66db623b7ccbc8d3e976a.zip
initfs: update: Do not cause an error if no files were saved
If there were no files in the read-write overlay file system that were in the persistent file list, then the save directory will not be created and therefore not exist. Skip attempting copying the non-existent directory in that case to avoid the error message. Signed-off-by: Milton Miller <miltonm@us.ibm.com>
Diffstat (limited to 'meta-phosphor/common')
-rwxr-xr-xmeta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-update.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-update.sh b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-update.sh
index f8e551cfd..f0ca989d2 100755
--- a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-update.sh
+++ b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-update.sh
@@ -144,7 +144,7 @@ do
flashcp -v $f /dev/$m && rm $f
done
-if test "x$toram" = xy
+if test -d $save -a "x$toram" = xy
then
mkdir -p $upper
cp -rp $save/. $upper/
OpenPOWER on IntegriCloud