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

actions/image-partition: truncate filesystem label to maximum supported length #531

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

Conversation

daissi
Copy link
Contributor

@daissi daissi commented Jan 28, 2025

Added optional fslabel property to partition to allow truncation of filesystem
label and allow user to modify filesystem label without modifying the name.
Filesystem label defaults to the name property of the partition.

The filesystem label can be up to 11 characters long for vfat, 16 characters
long for ext2/3/4, 255 characters long for btrfs, 512 characters long for
hfs/hfsplus and 12 characters long for xfs.

Fixes: #251

Suggested-by: Christopher Obbard [email protected]
Signed-off-by: Vignesh Raman [email protected]
Signed-off-by: Dylan Aïssi [email protected]

This MR is based on @vigneshraman 's work from #271.

…ed length

Added optional fslabel property to partition to allow truncation of filesystem
label and allow user to modify filesystem label without modifying the name.
Filesystem label defaults to the name property of the partition.

The filesystem label can be up to 11 characters long for {v}fat{12|16|32},
16 characters long for ext2/3/4, 255 characters long for btrfs, 512 characters
long for hfs/hfsplus and 12 characters long for xfs.

Fixes: go-debos#251

Suggested-by: Christopher Obbard <[email protected]>
Signed-off-by: Vignesh Raman <[email protected]>
Signed-off-by: Dylan Aïssi <[email protected]>
@daissi daissi force-pushed the vigneshraman/debos/issues/251-v1 branch from d31c1c2 to 2b9ada8 Compare January 28, 2025 15:22
@daissi daissi marked this pull request as ready for review January 30, 2025 17:27
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.

actions: image-partition: Should check label length in Verify stage
3 participants