diff --git a/RECIPE.md b/RECIPE.md index 1cae8307..3f53fe24 100644 --- a/RECIPE.md +++ b/RECIPE.md @@ -15,7 +15,7 @@ Create a new partition on the disk. **Accepts**: - *Name* (`string`): The name for the partition. -- *FsType* (`string`): The filesystem for the partition. Can be either `btrfs`, +- *FsType* (`string`): The filesystem for the partition. Can be either `none`, `btrfs`, `ext[2,3,4]`, `linux-swap`, `ntfs`\*, `reiserfs`\*, `udf`\*, or `xfs`\*. If FsType is prefixed with `luks-` (e.g. `luks-btrfs`), the partition will be encrypted using LUKS2. - *Start* (`int`): The start position on disk for the new partition (in MiB). diff --git a/core/recipe.go b/core/recipe.go index f607c363..0f1db305 100644 --- a/core/recipe.go +++ b/core/recipe.go @@ -95,7 +95,7 @@ func runSetupOperation(diskLabel, operation string, args []interface{}) error { * * **Accepts**: * - *Name* (`string`): The name for the partition. - * - *FsType* (`string`): The filesystem for the partition. Can be either `btrfs`, + * - *FsType* (`string`): The filesystem for the partition. Can be either `none`, `btrfs`, * `ext[2,3,4]`, `linux-swap`, `ntfs`\*, `reiserfs`\*, `udf`\*, or `xfs`\*. If FsType * is prefixed with `luks-` (e.g. `luks-btrfs`), the partition will be encrypted using LUKS2. * - *Start* (`int`): The start position on disk for the new partition (in MiB). @@ -141,6 +141,9 @@ func runSetupOperation(diskLabel, operation string, args []interface{}) error { return err } } else { // Unencrypted partition + if fsType == "none" { + fsType = "" + } _, err := disk.NewPartition(name, fsType, start, end) if err != nil { return err