Add hybrid MBR functionality to the gpt type
This commit is contained in:
danjujan authored and GitHub committed 2024-01-26 21:59:23 +01:00
1 parent c12719812d
commit f7424625dc
5 files changed
+112 -3

No files matched your search

+47
View File
@@ -0,0 +1,47 @@
{disks ? ["/dev/sda"], ...}: {
disko.devices = {
disk = {
main = {
type = "disk";
device = builtins.elemAt disks 0;
content = {
type = "gpt";
efiGptPartitionFirst = false;
partitions = {
TOW-BOOT-FI = {
priority = 1;
type = "EF00";
size = "32M";
content = {
type = "filesystem";
format = "vfat";
mountpoint = null;
};
hybrid = {
mbrPartitionType = "0x0c";
mbrBootableFlag = false;
};
};
ESP = {
type = "EF00";
size = "512M";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
};
}