summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmeta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-update.sh3
1 files changed, 1 insertions, 2 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 6b0d7a025..edaf195b2 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
@@ -138,8 +138,7 @@ for f in $image*
do
m=$(findmtd ${f#$image})
echo "Updating ${f#$image}..."
- # flasheraseall /dev/$m && dd if=$f of=/dev/$m
- flashcp -v $f /dev/$m
+ flashcp -v $f /dev/$m && rm $f
done
if test "x$toram" = xy
OpenPOWER on IntegriCloud