Created
June 19, 2024 04:59
-
-
Save kriswill/9ab43dd93c63ec79a3500a5817994815 to your computer and use it in GitHub Desktop.
Disko for a BIOS MBR partition on i686 VM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
disko.devices = { | |
disk = { | |
vda = { | |
type = "disk"; | |
device = "/dev/vda"; | |
content = { | |
type = "gpt"; | |
partitions = { | |
boot = { | |
size = "1M"; | |
type = "EF02"; # for grub MBR | |
priority = 1; # Needs to be first partition | |
}; | |
root = { | |
size = "100%"; | |
content = { | |
type = "filesystem"; | |
format = "ext4"; | |
mountpoint = "/"; | |
}; | |
}; | |
swap = { | |
size = "4G"; | |
content = { | |
type = "swap"; | |
discardPolicy = "both"; | |
resumeDevice = true; # resume from hiberation from this device | |
}; | |
}; | |
}; | |
}; | |
}; | |
}; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment