call copy_attachment() after configure() and move attachment files
authorDohyung Kim <dohyung2.kim@samsung.com>
Wed, 15 Nov 2017 08:48:39 +0000 (17:48 +0900)
committeryuhuan.yang <yuhuan.yang@samsung.com>
Tue, 30 Jan 2018 03:18:36 +0000 (11:18 +0800)
commit2f7aece3af62a2120b2117799c21f5ec5e937665
treecfb1ca86b530d05b10bba608272829068d1010ed
parent2af451af4f5b4cacbc47a36fee8ebda99ef28b73
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