mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-11 23:50:05 +01:00
boot-raid1: switch to new gpt type
This commit is contained in:
parent
64c9c78c15
commit
4823509bb3
1 changed files with 28 additions and 46 deletions
|
|
@ -5,74 +5,56 @@
|
||||||
type = "disk";
|
type = "disk";
|
||||||
device = builtins.elemAt disks 0;
|
device = builtins.elemAt disks 0;
|
||||||
content = {
|
content = {
|
||||||
type = "table";
|
type = "gpt";
|
||||||
format = "gpt";
|
partitions = {
|
||||||
partitions = [
|
boot = {
|
||||||
{
|
size = "1M";
|
||||||
name = "boot";
|
type = "EF02";
|
||||||
start = "0";
|
};
|
||||||
end = "1M";
|
ESP = {
|
||||||
part-type = "primary";
|
size = "128M";
|
||||||
flags = [ "bios_grub" ];
|
type = "EF00";
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "ESP";
|
|
||||||
start = "1MiB";
|
|
||||||
end = "128MiB";
|
|
||||||
fs-type = "fat32";
|
|
||||||
bootable = true;
|
|
||||||
content = {
|
content = {
|
||||||
type = "mdraid";
|
type = "mdraid";
|
||||||
name = "boot";
|
name = "boot";
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
{
|
mdadm = {
|
||||||
name = "mdadm";
|
size = "100%";
|
||||||
start = "128MiB";
|
|
||||||
end = "100%";
|
|
||||||
content = {
|
content = {
|
||||||
type = "mdraid";
|
type = "mdraid";
|
||||||
name = "raid1";
|
name = "raid1";
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
];
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
two = {
|
two = {
|
||||||
type = "disk";
|
type = "disk";
|
||||||
device = builtins.elemAt disks 1;
|
device = builtins.elemAt disks 1;
|
||||||
content = {
|
content = {
|
||||||
type = "table";
|
type = "gpt";
|
||||||
format = "gpt";
|
partitions = {
|
||||||
partitions = [
|
boot = {
|
||||||
{
|
size = "1M";
|
||||||
name = "boot";
|
type = "EF02";
|
||||||
start = "0";
|
};
|
||||||
end = "1M";
|
ESP = {
|
||||||
part-type = "primary";
|
size = "128M";
|
||||||
flags = [ "bios_grub" ];
|
type = "EF00";
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "ESP";
|
|
||||||
start = "1MiB";
|
|
||||||
end = "128MiB";
|
|
||||||
fs-type = "fat32";
|
|
||||||
bootable = true;
|
|
||||||
content = {
|
content = {
|
||||||
type = "mdraid";
|
type = "mdraid";
|
||||||
name = "boot";
|
name = "boot";
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
{
|
mdadm = {
|
||||||
name = "mdadm";
|
size = "100%";
|
||||||
start = "128MiB";
|
|
||||||
end = "100%";
|
|
||||||
content = {
|
content = {
|
||||||
type = "mdraid";
|
type = "mdraid";
|
||||||
name = "raid1";
|
name = "raid1";
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
];
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue