From 22ef95c1a1ccb93796137e772a49c028d7bd6ec7 Mon Sep 17 00:00:00 2001 From: Matthew Thode Date: Tue, 9 Feb 2016 23:38:39 -0600 Subject: [PATCH] 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 --- elements/package-installs/README.rst | 9 +++++++++ .../{99-package-uninstalls => 95-package-uninstalls} | 0 2 files changed, 9 insertions(+) rename elements/package-installs/post-install.d/{99-package-uninstalls => 95-package-uninstalls} (100%) 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