]> code.ossystems Code Review - openembedded-core.git/commit
run-postinsts: do not remove postinsts directory.
authorAnton D. Kachalov <gmouse@google.com>
Sun, 21 Mar 2021 10:26:16 +0000 (11:26 +0100)
committerAnuj Mittal <anuj.mittal@intel.com>
Fri, 9 Apr 2021 06:01:25 +0000 (14:01 +0800)
commit214056938f8408c75b68002643789284eabd0389
tree9b0f0a8f11959f4194d103597954b14fd956d546
parent0e7feade706a4a88181a45ca4999051994a5aaab
run-postinsts: do not remove postinsts directory.

When running on the systems having read-only rootfs backed by overlayfs,
removing the whole directory lead to create a special char device file
on the upperdir to reflect directory's removal. Once it is required to
upgrade the whole read-only image that might contain new postinsts scripts,
it will be impossible to run such scripts with a "deletion mark" file
on the overlayfs -- the whole directory will be marked as deleted regardless
new files in it.

Signed-off-by: Anton D. Kachalov <gmouse@google.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 1a27b62b225ffeecec47c249a0b86cc54d775add)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts