Skip to content
Snippets Groups Projects

Integrate podman in Oniro

Merged Andrei Gherzan requested to merge agherzan/oniro:ag/podman into kirkstone
1 file
+ 12
1
Compare changes
  • Side-by-side
  • Inline
@@ -141,5 +141,16 @@ python deploy_boot_artifacts_to_rootfs() {
os.path.join(rootfs_dir, dst_path))
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.
import rootfspostcommands
for file in ['subuid', 'subgid']:
filename = os.path.join(d.expand('${IMAGE_ROOTFS}${sysconfdir}'), file)
rootfspostcommands.remove_backup(filename)
}
Loading