Skip to content

Commit

Permalink
types table: add deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Lassulus committed Feb 17, 2024
1 parent 810eccb commit 886c4f0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/types/table.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{ config, options, lib, diskoLib, parent, device, ... }:
{
options = {
options = lib.warn ''
The legacy table is deprecated and is not recommended to be used anymore.
The gpt type is the recommended partition table type.
With the legacy table type things like the test framework will not work.
if you see errors looking like this:
error: The option `disko.devices.disk.disk1.content.partitions."[definition 1-entry 1]".content._config' is read-only, but it's set multiple times.
then it's the fault of the legacy table type.
'' {
type = lib.mkOption {
type = lib.types.enum [ "table" ];
internal = true;
Expand Down

0 comments on commit 886c4f0

Please sign in to comment.