Skip to content
Snippets Groups Projects
Verified Commit 4e26c7d1 authored by Andrei Gherzan's avatar Andrei Gherzan :penguin:
Browse files

oniro-image.bbclass: Drop subid backup post rootfs command

Upstream (oe-core) handles now the cleanup directly in the default
sort_passwd post rootfs command.

Merged in oe-core, kirkstone 84b2e9a6c17278cbcc08020aa78759004a7b60bf.
This revision is included in the last oe-core bump.

Related to #772



Signed-off-by: Andrei Gherzan's avatarAndrei Gherzan <andrei.gherzan@huawei.com>
parent a5100528
No related branches found
No related tags found
1 merge request!301Bump oe-core/bitbake to drop local support/fixes as upstream caught up
......@@ -139,16 +139,3 @@ python deploy_boot_artifacts_to_rootfs() {
run_cmd(install_cmd)
}
ROOTFS_POSTPROCESS_COMMAND += "deploy_boot_artifacts_to_rootfs;"
python () {
d.appendVar('ROOTFS_POSTPROCESS_COMMAND', ' clean_backup_files; ')
}
python clean_backup_files () {
# Cleanup other backup files generated by shadow-utils not covered by the
# sort_passwd existing rootfs postcommand.
# https://gitlab.eclipse.org/eclipse/oniro-core/oniro/-/issues/772
import rootfspostcommands
for file in ['subuid', 'subgid']:
filename = os.path.join(d.expand('${IMAGE_ROOTFS}${sysconfdir}'), file)
rootfspostcommands.remove_backup(filename)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment