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

Cleanup the home directory as it is not preserved by ostree #1418

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

quaresmajose
Copy link
Member

No description provided.

@quaresmajose quaresmajose requested a review from a team February 5, 2024 20:30
The user home directory is created in runtime when it does not exist.

This will fix the remaining warning:
| WARNING: lmp-base-console-image-1.0-r0 do_image_ostree: Data in 'home' directory is not preserved by OSTree. Consider moving it under '/usr'
| home/fio
| home/fio/.bashrc
| home/fio/.profile

Signed-off-by: Jose Quaresma <[email protected]>
This will fix the remaining warning:
| WARNING: lmp-base-console-image-1.0-r0 do_image_ostree: Data in 'home' directory is not preserved by OSTree. Consider moving it under '/usr'
| home/root

Signed-off-by: Jose Quaresma <[email protected]>
@MrCry0
Copy link
Contributor

MrCry0 commented Mar 12, 2024

@quaresmajose Could you also include this related commit to your PR? 3699011

@quaresmajose
Copy link
Member Author

@quaresmajose Could you also include this related commit to your PR? 3699011

We don't need to remove the /home directory content anymore because with this PR they should be clean at the end of the image do_rootfs task.

In the near future I would like to make this not clean /home and /var a failure, changing the meta-updater OSTREE_RMDIR_HELPER_MSGTYPE to bberror in the helper ostree_rmdir_helper.

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.

3 participants