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

storage: add part number to butane example #625

Closed
wants to merge 1 commit into from

Conversation

prestist
Copy link
Contributor

@prestist prestist commented Apr 9, 2024

Fixes: COS-1706

@travier
Copy link
Member

travier commented Apr 9, 2024

Note that I'm not saying that this is invalid. Only that I don't understand it.

@prestist
Copy link
Contributor Author

prestist commented Apr 9, 2024

@travier Yeah it does not mention it either, and needs to be updated. openshift/openshift-docs#74419

@prestist
Copy link
Contributor Author

prestist commented Apr 9, 2024

1 through 4 are reserved for specific purposes, and so var would be 5.

Ugh Just noticed butane is wrong too.

Filesystems and partitions https://coreos.github.io/butane/examples/
coreos/butane#524

@travier
Copy link
Member

travier commented Apr 10, 2024

Isn't the partition number automatically picked-up by Ignition?

From https://coreos.github.io/ignition/configuration-v3_4/:

number (integer): the partition number, which dictates its position in the partition table (one-indexed). If zero, use the next available partition slot.

@prestist
Copy link
Contributor Author

Isn't the partition number automatically picked-up by Ignition?

From https://coreos.github.io/ignition/configuration-v3_4/:

number (integer): the partition number, which dictates its position in the partition table (one-indexed). If zero, use the next available partition slot.

Yeah, the thought was to include the number like the root part above. While its not necessary, it gives some context, and consistency

@jlebon
Copy link
Member

jlebon commented Apr 12, 2024

The difference with the root one is that it's modifying an existing partition (so it needs to refer to it), whereas the /var one is new. And actually, ideally that root stanza wouldn't be necessary at all. The problem is without it, the next partition will trap it and prevent the rootfs from getting enough space.

Adding the partition number for /var seems OK though it's also totally fine to omit it, so ideally we do have examples that showcase that too.

@prestist prestist force-pushed the update-part-number-for-var branch 3 times, most recently from 29e60cf to ab6cfe6 Compare May 2, 2024 17:53
@prestist
Copy link
Contributor Author

prestist commented May 2, 2024

Ok, I went and added an example with a number and notes. I hope this is fine lmk.

@prestist prestist force-pushed the update-part-number-for-var branch from ab6cfe6 to d36ca19 Compare May 2, 2024 19:48
@jlebon
Copy link
Member

jlebon commented May 6, 2024

I'm not sure I understand. Can you clarify: did a user hit a bug somehow related to this? How did this come on your radar?

@prestist
Copy link
Contributor Author

@jlebon, it was something I stumbled across with an old co-worker, and we made a ticket for it. Im not sure I captured enough details at the time. I am willing to close this if you think its not worth it. No need to spin wheels on something that negatively impacts the project.

@jlebon jlebon closed this May 22, 2024
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

3 participants