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>
Fri, 26 Jan 2018 05:57:29 +0000 (13:57 +0800)
commit0575dde1118d9b084d8dcc577db8a0f9f749ae9e
treeda8d8067ebf8b84d5bedcc1d098619a9fab46d28
parenta9a5dd7b07c9e3503e98b9a0b72fe8fdce38e0c6
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