From 592432e551bd61800d488a0bf6b4a52762445e58 Mon Sep 17 00:00:00 2001 From: Sunmin Lee Date: Wed, 30 Nov 2016 13:37:38 +0900 Subject: [PATCH] Upgrade: cp instead of mv Because RO partition shouldn't be modified, use cp instead of mv. Change-Id: If852002611569ebc5146c73b82617ee9e14975c4 --- data/scripts/235.key-manager-move-rw-from-upgrade-dir.patch.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/scripts/235.key-manager-move-rw-from-upgrade-dir.patch.sh.in b/data/scripts/235.key-manager-move-rw-from-upgrade-dir.patch.sh.in index 1e2a4ee..e635de6 100644 --- a/data/scripts/235.key-manager-move-rw-from-upgrade-dir.patch.sh.in +++ b/data/scripts/235.key-manager-move-rw-from-upgrade-dir.patch.sh.in @@ -24,7 +24,7 @@ RW_DATA_DIR=@RW_DATA_DIR@ UPGRADE_DATA_DIR=@UPGRADE_DATA_DIR@/key-manager if [ ! -d "${RW_DATA_DIR}/initial_values" ]; then - mv ${UPGRADE_DATA_DIR}/initial_values ${RW_DATA_DIR}/ + cp -rf ${UPGRADE_DATA_DIR}/initial_values ${RW_DATA_DIR}/ chmod -R 770 ${RW_DATA_DIR}/initial_values chown -R @USER_NAME@:@GROUP_NAME@ ${RW_DATA_DIR}/initial_values chsmack -r -a "@SMACK_DOMAIN_NAME@" ${RW_DATA_DIR}/initial_values -- 2.7.4