diff options
author | Milton D. Miller II <miltonm@us.ibm.com> | 2016-02-28 18:17:02 -0600 |
---|---|---|
committer | Milton D. Miller II <miltonm@us.ibm.com> | 2016-03-04 10:51:04 -0600 |
commit | ba2b7c9f51e7f6c68571cf0dce17d538ed1fcb49 (patch) | |
tree | 9177da54df296c264f5618cfd9ebcfbcad1b19f9 | |
parent | facb7186ccefe51ab66984858c6aad8b4d804af1 (diff) | |
download | talos-openbmc-ba2b7c9f51e7f6c68571cf0dce17d538ed1fcb49.tar.gz talos-openbmc-ba2b7c9f51e7f6c68571cf0dce17d538ed1fcb49.zip |
update: Make cow directory before restoring saved files.
This will ensure the cp command always writes to an existing
directory but will also make any future component directories if
the upper directory is later moved from the root of the filesystem.
Signed-off-by: Milton Miller <miltonm@us.ibm.com>
-rwxr-xr-x | meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-update.sh | 1 |
1 files changed, 1 insertions, 0 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 cab33e9a5..1a1195382 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,6 +138,7 @@ then mkdir -p $rwdir mount $rwdev $rwdir -t $(probe_fs_type $rwdev) -o $rwopts + mkdir -p $upper cp -rp $save/. $upper/ umount $rwdir rmdir $rwdir |