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

types table: add deprecation warning #538

Merged
merged 1 commit into from
Feb 18, 2024
Merged

Conversation

Lassulus
Copy link
Collaborator

No description provided.

@Lassulus Lassulus requested a review from Mic92 February 17, 2024 03:34
@Lassulus
Copy link
Collaborator Author

@mergify rebase

Copy link
Contributor

mergify bot commented Feb 17, 2024

rebase

✅ Branch has been successfully rebased

@Lassulus Lassulus merged commit d8a4377 into master Feb 18, 2024
35 checks passed
@Lassulus Lassulus deleted the legacy_tables_warning branch February 18, 2024 02:02
@nifoc
Copy link

nifoc commented Feb 18, 2024

Is there some kind of documentation/explanation of how to move from table to gpt?

I just got this error but it's very unclear to me how I should deal with it.

To expand on this: I import this file in my flake-based configuration, so every rebuild now triggers:

trace: warning: The legacy table is outdated and should not be used. We recommend using the gpt type instead.
Please note that certain features, such as the test framework, may not function properly with the legacy table type.
If you encounter errors similar to:
"error: The option `disko.devices.disk.disk1.content.partitions."[definition 1-entry 1]".content._config` is read-only, but it's set multiple times,"
this is likely due to the use of the legacy table type.

trace: warning: The legacy table is outdated and should not be used. We recommend using the gpt type instead.
Please note that certain features, such as the test framework, may not function properly with the legacy table type.
If you encounter errors similar to:
"error: The option `disko.devices.disk.disk1.content.partitions."[definition 1-entry 1]".content._config` is read-only, but it's set multiple times,"
this is likely due to the use of the legacy table type.

trace: warning: The legacy table is outdated and should not be used. We recommend using the gpt type instead.
Please note that certain features, such as the test framework, may not function properly with the legacy table type.
If you encounter errors similar to:
"error: The option `disko.devices.disk.disk1.content.partitions."[definition 1-entry 1]".content._config` is read-only, but it's set multiple times,"
this is likely due to the use of the legacy table type.

trace: warning: The legacy table is outdated and should not be used. We recommend using the gpt type instead.
Please note that certain features, such as the test framework, may not function properly with the legacy table type.
If you encounter errors similar to:
"error: The option `disko.devices.disk.disk1.content.partitions."[definition 1-entry 1]".content._config` is read-only, but it's set multiple times,"
this is likely due to the use of the legacy table type.

Looking through the code, it seems like table and gpt are pretty different and you can't "just move" an existing installation/setup.

@Lassulus
Copy link
Collaborator Author

Ah there pretty sure is. But I have not done it myself yet. If you don't want to reformat, it should be fairly straight forward and I will try to write something up in the next week. Sorry for the noise of the warning until then

@kira-bruneau
Copy link
Contributor

kira-bruneau commented Feb 18, 2024

Is table only deprecated for gpt partition tables? This warning still comes up if you're using mbr/msdos, but I can't find any other alternative.

@Lassulus
Copy link
Collaborator Author

Yeah. Maybe hybrid gpt partitions can be used in that case. But I would declare legacy/msdos tables in general deprecated? What is your usecase for them?

@kira-bruneau
Copy link
Contributor

kira-bruneau commented Feb 20, 2024

Mainly just using it as a declarative configuration for mounting an already formatted drive.

I tried using the gpt type, but msdos doesn't support partition labels, so right now it fails when trying to mount through /dev/disk/by-partlabel.

I could also just use the nixos filesystem module directly, but I've been trying to keep all disk-specific configuration in disko.

@Lassulus
Copy link
Collaborator Author

hmm I guess in that case you can ignore the warning, or we could move it to the create argument, but then people only see it when creating new drives and there it could be already to late.

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