From 15c4d57b41b6b57024aec015e5d30a4ed4713034 Mon Sep 17 00:00:00 2001 From: lassulus Date: Tue, 4 Jul 2023 16:01:32 +0200 Subject: [PATCH] example gpt-bios-compat: use new gpt type --- example/gpt-bios-compat.nix | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/example/gpt-bios-compat.nix b/example/gpt-bios-compat.nix index 2bdd6d8..837b38a 100644 --- a/example/gpt-bios-compat.nix +++ b/example/gpt-bios-compat.nix @@ -6,30 +6,21 @@ device = builtins.elemAt disks 0; type = "disk"; content = { - type = "table"; - format = "gpt"; - partitions = [ - { - name = "boot"; - start = "0"; - end = "1M"; - part-type = "primary"; - flags = [ "bios_grub" ]; - } - { - name = "root"; - # leave space for the grub aka BIOS boot - start = "1M"; - end = "100%"; - part-type = "primary"; - bootable = true; + type = "gpt"; + partitions = { + boot = { + size = "1M"; + type = "EF02"; + }; + root = { + size = "100%"; content = { type = "filesystem"; format = "ext4"; mountpoint = "/"; }; - } - ]; + }; + }; }; }; };