support both %runscript and %post-umount to perform scripts before packaging
authorDohyung Kim <dohyung2.kim@samsung.com>
Tue, 21 Nov 2017 05:55:28 +0000 (14:55 +0900)
committeryuhuan.yang <yuhuan.yang@samsung.com>
Tue, 30 Jan 2018 05:19:05 +0000 (13:19 +0800)
commita525045ae230064e5461cd3395e2e8d6c531bf9b
tree01fe0ebfd7454bc8780d11196da812f3ebe2a48b
parent3394e94e03ce666cfc770f7256583045c0f2774e
support both %runscript and %post-umount to perform scripts before packaging

- add %post-umount section which behaves the same as %runscript
  (if both %runscript and %post-umount are defined then KickstartError occurs)
- move post umount scripts from /var/tmp/post_umount_scripts/ on image to host
- post umount scripts can be use UMOUNT_SCRIPTS_PATH env variable
  (UMOUNT_SCRIPTS_PATH: directory path where post umount scripts are located on host)

Change-Id: Ib88c103f0d3e84c067d0d6683f406a5cac92739a
Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
mic/3rdparty/pykickstart/constants.py
mic/3rdparty/pykickstart/parser.py
mic/3rdparty/pykickstart/sections.py
mic/imager/loop.py
mic/kickstart/__init__.py