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)
committermao xiaojuan <xiaojuan.mao@samsung.com>
Fri, 26 Jan 2018 07:53:51 +0000 (15:53 +0800)
commit4378ebe2c2a125b373bbd609b6763839ab448925
tree38c91e0d78de6e7c7fa9805cd401c4d911a45390
parent9ba21499694fa0b66f2791c5e0053d77a11543e9
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