Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport [kirkstone]: image_types_ostree: ostree_rmdir_helper: fix regression in removing /var symbolic links #70

Merged
merged 1 commit into from
Apr 25, 2023

Conversation

quaresmajose
Copy link
Contributor

Backport #69

…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>
@pattivacek pattivacek merged commit ce939ff into uptane:kirkstone Apr 25, 2023
@quaresmajose quaresmajose deleted the image_types_ostree branch April 25, 2023 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants