Skip to content

Instantly share code, notes, and snippets.

@kriswill
Created June 19, 2024 04:59
Show Gist options
  • Save kriswill/9ab43dd93c63ec79a3500a5817994815 to your computer and use it in GitHub Desktop.
Save kriswill/9ab43dd93c63ec79a3500a5817994815 to your computer and use it in GitHub Desktop.
Disko for a BIOS MBR partition on i686 VM
{
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