call copy_attachment() after configure() and move attachment files 31/160431/4
authorDohyung Kim <dohyung2.kim@samsung.com>
Wed, 15 Nov 2017 08:48:39 +0000 (17:48 +0900)
committerDohyung Kim <dohyung2.kim@samsung.com>
Fri, 26 Jan 2018 03:19:28 +0000 (03:19 +0000)
commit7db9b0c91a5b26f96a86ec10dfad261a7d781f3b
treefc6d4d1d5860b8859cf651720745bfdba640c7bb
parent188b08469b712bd1a9665e9da6ac67cb0a47ea86
call copy_attachment() after configure() and move attachment files

- Call BaseImager.copy_attachment() after BaseImager.configure()
  Post scripts on configure() cannot access attachment files which come from install_root.
  So call copy_attachment() after running post scripts.

- Move attachment files not copy.
  If copying attachment files from install_root, then attachment files remain in install_root.
  So use mv instead of cp for deduplication.

Change-Id: Ie7a1d516331e29eaba975bc186b9644b96c17fbc
Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
mic/imager/baseimager.py
mic/imager/loop.py
plugins/imager/fs_plugin.py
plugins/imager/loop_plugin.py
plugins/imager/qcow_plugin.py
plugins/imager/raw_plugin.py