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

stages(ostree.post-copy): add stage unit test and comment #1465

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

mvo5
Copy link
Contributor

@mvo5 mvo5 commented Nov 23, 2023

Small followup for pr#1343 to ensure #1343 (comment) is captured in a test and comment. So that our future selfs do not accidentally "cleanup" devices from the schema as it appears unused.

@mvo5 mvo5 requested a review from supakeen November 23, 2023 08:15
This commit adds a small stage unit test and most importantly
a comemnt why `devices` is part of the schema (but appears unused).

The reason "devices" is explained by Alex Larsson:
"""
The mounts don't work without devices that have the filesystems.
In sample-images for example, this is typically used like so:
```
type: org.osbuild.ostree.post-copy
devices:
  root:
    type: org.osbuild.loopback
    options:
      filename: disk.img
mounts:
- name: root
  type: org.osbuild.ext4
  source: root
  target: /
```
"""
@mvo5 mvo5 force-pushed the ostree-composeefs-tiny-test-and-comment branch from 61d4b3b to 8897af4 Compare November 23, 2023 08:56
Copy link
Member

@supakeen supakeen left a comment

Choose a reason for hiding this comment

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

All good :)

@supakeen supakeen merged commit 4884dc8 into osbuild:main Nov 27, 2023
75 checks passed
@mvo5 mvo5 deleted the ostree-composeefs-tiny-test-and-comment branch November 27, 2023 16:18
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.

None yet

2 participants