From ba2b7c9f51e7f6c68571cf0dce17d538ed1fcb49 Mon Sep 17 00:00:00 2001 From: "Milton D. Miller II" Date: Sun, 28 Feb 2016 18:17:02 -0600 Subject: 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 --- .../common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-update.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'meta-phosphor/common/recipes-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 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 -- cgit v1.2.1