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

Assign filesystem labels #100

Closed
versedwildcat opened this issue Dec 30, 2022 · 2 comments
Closed

Assign filesystem labels #100

versedwildcat opened this issue Dec 30, 2022 · 2 comments

Comments

@versedwildcat
Copy link

My use case involves a BTRFS partition inside LUKS.
Normally, I could add a label to the filesystem using btrfs filesystem label /dev/mapper/example my_label (#29 (comment) for other filesystems)

Is there a way to assign the label using Disko?
I see that in #30 you found a work around to labels, but I'm not sure how/if to utilize part-type for this

Thanks!

@lilyinstarlight
Copy link
Member

That's actually a filesystem label rather than a partition label, but you should be able to set that via using the type = "btrfs"; type and setting extraArgs = "--label my_label";, kinda like in

content = {
type = "btrfs";
extraArgs = "-f"; # Override existing partition

@versedwildcat versedwildcat changed the title Label partition inside LUKS? Assign filesystem labels Dec 30, 2022
@versedwildcat
Copy link
Author

That's actually a filesystem label rather than a partition label, but you should be able to set that via using the type = "btrfs"; type and setting extraArgs = "--label my_label";, kinda like in

content = {
type = "btrfs";
extraArgs = "-f"; # Override existing partition

Thanks! Worked great
I'll leave this issue open for another day in case anyone wants to add anything

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

No branches or pull requests

2 participants