Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
image_types_ostree: ostree_rmdir_helper: fix regression in removing /…
…var symbolic links Before the introduction of the ostree_rmdir_helper the '/var' content is removed uncondictional but new they are removed if they are directories and not symbolic link. To make it consistent we will remove everything in '/var' with the exception of 'var/local'. This will also warn about all content deleted from '/var' that has been silent until now so running bitbake in verbose mode will produce: WARNING: lmp-base-console-image-1.0-r0 do_image_ostree: Data in 'var' directory is not preserved by OSTree. Consider moving it under '/usr' var/volatile var/lib var/log var/tmp var/cache + rm -vrf var removed directory 'var/volatile' removed directory 'var/lib' removed 'var/log' removed 'var/tmp' removed directory 'var/cache' removed directory 'var' + mkdir var Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> (cherry picked from commit 6cae66f) Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
- Loading branch information