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

support /var as a mount #855

Closed
cgwalters opened this issue May 12, 2017 · 4 comments
Closed

support /var as a mount #855

cgwalters opened this issue May 12, 2017 · 4 comments

Comments

@cgwalters
Copy link
Member

cgwalters commented May 12, 2017

Downstream: https://bugzilla.redhat.com/show_bug.cgi?id=1098303

The DISA STIG specifies for Red Hat Enterprise Linux that /var should be a mount point.

Right now that doesn't quite work with libostree on Fedora-derived (likely more generally systemd-using) OSes since systemd notices var.mount already exists as a unit, and the fstab generator hence skips whatever is in fstab.

I think we can fix this by doing the "sysroot var" mount after the switchroot. My rough plan here is basically:

  • Write a systemd generator that also parses /etc/fstab, and if a mount for /var is not found, generates a unit for the ostree "sysroot var" mount
  • Test this a lot
@cgwalters
Copy link
Member Author

Related PR: #856

@cgwalters
Copy link
Member Author

PR in #859

@cgwalters
Copy link
Member Author

Closed by #859

cgwalters added a commit to cgwalters/anaconda that referenced this issue May 17, 2017
See: ostreedev/ostree#855

Basically, if `/var` is in the user specified mounts, don't override
it with the "default ostree" `var`.

This allows people to easily keep all of their local state (apart from `/etc`)
in a single partition with potentially different quotas etc.
@cgwalters
Copy link
Member Author

cgwalters added a commit to cgwalters/anaconda that referenced this issue May 23, 2017
See: ostreedev/ostree#855

Basically, if `/var` is in the user specified mounts, don't override
it with the "default ostree" `var`.

This allows people to easily keep all of their local state (apart from `/etc`)
in a single partition with potentially different quotas etc.
cgwalters added a commit to cgwalters/anaconda that referenced this issue Jun 2, 2017
See: ostreedev/ostree#855

Basically, if `/var` is in the user specified mounts, don't override
it with the "default ostree" `var`.

This allows people to easily keep all of their local state (apart from `/etc`)
in a single partition with potentially different quotas etc.
cgwalters added a commit to cgwalters/anaconda that referenced this issue Jun 6, 2017
See: ostreedev/ostree#855

Basically, if `/var` is in the user specified mounts, don't override
it with the "default ostree" `var`.

This allows people to easily keep all of their local state (apart from `/etc`)
in a single partition with potentially different quotas etc.

Related: rhbz#1098303
cgwalters added a commit to cgwalters/anaconda that referenced this issue Jun 8, 2017
See: ostreedev/ostree#855

Basically, if `/var` is in the user specified mounts, don't override
it with the "default ostree" `var`.

This allows people to easily keep all of their local state (apart from `/etc`)
in a single partition with potentially different quotas etc.

Resolves: rhbz#1459623
cgwalters added a commit to cgwalters/anaconda that referenced this issue Jul 12, 2017
See: ostreedev/ostree#855

Basically, if `/var` is in the user specified mounts, don't override
it with the "default ostree" `var`.

This allows people to easily keep all of their local state (apart from `/etc`)
in a single partition with potentially different quotas etc.
cgwalters added a commit to cgwalters/anaconda that referenced this issue Jul 24, 2017
See: ostreedev/ostree#855

Basically, if `/var` is in the user specified mounts, don't override
it with the "default ostree" `var`.

This allows people to easily keep all of their local state (apart from `/etc`)
in a single partition with potentially different quotas etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant