From 0f1edbefd47d9a0234b66e55a820a38cec01baa0 Mon Sep 17 00:00:00 2001 From: Milton Miller Date: Mon, 23 May 2016 18:35:21 -0500 Subject: 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 --- .../common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta-phosphor') 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/ -- cgit v1.2.1