Skip to content
Snippets Groups Projects
Verified Commit 6317899a authored by Andrei Gherzan's avatar Andrei Gherzan 🐧
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 eclipse/oniro-core/oniro#772



Signed-off-by: Andrei Gherzan's avatarAndrei Gherzan <andrei.gherzan@huawei.com>
parent 3e0e7223
No related branches found
No related tags found
No related merge requests found
Pipeline #9626 failed
......@@ -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