Skip to content

Clean out /var for images - #205

Merged
dustymabe merged 1 commit into
coreos:masterfrom
cgwalters:var-clean
Nov 13, 2018
Merged

dustymabe merged 1 commit into
coreos:masterfrom
cgwalters:var-clean

Conversation

@cgwalters

Copy link
Copy Markdown
Member

OSTree was designed from the very start to support having /var
be empty on boot, but for Fedora we ended up using Anaconda which
meant we had to carry a lot of hacks to run systemd-tmpfiles
in the root to support %post. And when I say "hacks", I mean
seriously ugly hacks.

For Fedora CoreOS, since we're requiring Ignition and moving
away from Anaconda, we can use OSTree as it was designed
in a clean fashion.

For now since our build side is still using Anaconda, let's just
remove all contents in /var as a postprocessing step.

This is also a preparatory change for having images with a /var
partition pre-configured.

Requires: coreos/fedora-coreos-config#29

OSTree was designed from the very start to support having `/var`
be empty on boot, but for Fedora we ended up using Anaconda which
meant we had to carry a lot of hacks to run `systemd-tmpfiles`
in the root to support `%post`.  And when I say "hacks", I mean
seriously ugly hacks.

For Fedora CoreOS, since we're requiring Ignition and moving
away from Anaconda, we can use OSTree as it was designed
in a clean fashion.

For now since our build side is still using Anaconda, let's just
remove all contents in `/var` as a postprocessing step.

This is also a preparatory change for having images with a `/var`
partition pre-configured.

Requires: coreos/fedora-coreos-config#29
@dustymabe

Copy link
Copy Markdown
Member

LGTM. marking as WIP for now until coreos/fedora-coreos-config#29 is merged

@dustymabe dustymabe changed the title Clean out /var for images [WIP] Clean out /var for images Nov 12, 2018
@dustymabe dustymabe added WIP PR still being worked on and removed WIP PR still being worked on labels Nov 12, 2018
@dustymabe dustymabe changed the title [WIP] Clean out /var for images Clean out /var for images Nov 12, 2018
@cgwalters

Copy link
Copy Markdown
Member Author

BTW, this PR came out of experimentation I was doing with building Silverblue via coreos-assembler: https://pagure.io/workstation-ostree-config/pull-request/109

@miabbott miabbott left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sane

@dustymabe
dustymabe merged commit 4af9ffb into coreos:master Nov 13, 2018
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