Reorder the package-uninstall action

This action has been reordered so cleanup can occur before copy to blockdev
occurs.  Documentation has been added about the ordering of this element in
relation to cleanup actions as well.

Change-Id: I3f9334a3669ee588d7fa7129202c97fa22fdb050
This commit is contained in:
Matthew Thode 2016-02-09 23:38:39 -06:00
parent a69dd548a7
commit 22ef95c1a1
No known key found for this signature in database
GPG key ID: 64A37BEAAE19A4E8
2 changed files with 9 additions and 0 deletions

View file

@ -50,3 +50,12 @@ post-install.d directories called package-installs-<element-name> will cause
the list of packages in that file to be installed at the beginning of the
respective phase. If the package name in the file starts with a "-", then
that package will be removed at the end of the install.d phase.
Using post-install.d for cleanup
================================
Package removal is done in post-install.d at level 95. If you a
running cleanup functions before this, you need to be careful not
to clean out any temporary files relied upon by this element.
For this reason, generally post-install cleanup functions should
occupy the higher levels between 96 and 99.