diff --git a/elements/package-installs/README.rst b/elements/package-installs/README.rst index eb011e89..6da3cff7 100644 --- a/elements/package-installs/README.rst +++ b/elements/package-installs/README.rst @@ -50,3 +50,12 @@ post-install.d directories called package-installs- 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. diff --git a/elements/package-installs/post-install.d/99-package-uninstalls b/elements/package-installs/post-install.d/95-package-uninstalls similarity index 100% rename from elements/package-installs/post-install.d/99-package-uninstalls rename to elements/package-installs/post-install.d/95-package-uninstalls