mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
Merge pull request #538 from nix-community/legacy_tables_warning
types table: add deprecation warning
This commit is contained in:
commit
d8a4377cd8
1 changed files with 7 additions and 1 deletions
|
@ -1,6 +1,12 @@
|
||||||
{ config, options, lib, diskoLib, parent, device, ... }:
|
{ config, options, lib, diskoLib, parent, device, ... }:
|
||||||
{
|
{
|
||||||
options = {
|
options = lib.warn ''
|
||||||
|
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.
|
||||||
|
'' {
|
||||||
type = lib.mkOption {
|
type = lib.mkOption {
|
||||||
type = lib.types.enum [ "table" ];
|
type = lib.types.enum [ "table" ];
|
||||||
internal = true;
|
internal = true;
|
||||||
|
|
Loading…
Reference in a new issue