]> 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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 23 Mar 2021 22:51:19 +0000 (22:51 +0000)
commit1a27b62b225ffeecec47c249a0b86cc54d775add
tree761158ffead18973dacc3322f3992fea64e67d6e
parentfa5243693e35e1e0dc3247e2178f181051f68e77
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>
meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts