| 8 Jul 2024 |
matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) | * it just needs to stop using that damned qemuBinary function and pass qemu as an input rather than the whole of pkgs | 15:05:56 |
matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) | https://github.com/NixOS/nixpkgs/pull/325619 | 19:04:57 |
matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) | important for disko | 19:05:00 |
matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) | unless anyone knows a better way | 19:05:07 |
matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) | I've tried to make it as minimal as possible lassulus but it requires a vmTools change in nixpkgs | 19:16:09 |
wolfeexd | attempt: on a BIOS boot only system, I am trying to assign a id or uudi to a disko config because /dev/sdx gets switched around and becomes less viable in a raid setup problem: switching to or using /dev/disk/by-id/<some-device> causes a GRUB2 error after rebuild: "This GPT partition label contains no BIOS Boot Partition; embedding won't be possible." extra context: this is on a system that already has a disko config setup and im trying to switch it, i cannot bootstrap with /dev/disk/by-id disk either.
I've been stuck on this for a few days, just a nudge in the right direction even if its pointing out something in the docs, or a workaround would be very helpful.
config: "" { device ? throw "Set this to your disk device, e.g. /dev/sda", ... }: { disko.devices = { disk.main = { inherit device; type = "disk"; content = { type = "gpt"; partitions = { boot = { name = "boot"; size = "1M"; type = "EF02"; # for grub MBR }; esp = { name = "ESP"; size = "500M"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; }; }; swap = { size = "4G"; content = { type = "swap"; resumeDevice = true; }; }; root = { name = "root"; size = "100%"; content = { type = "lvm_pv"; vg = "root_vg"; }; }; }; }; }; lvm_vg = { root_vg = { type = "lvm_vg"; lvs = { root = { size = "100%FREE"; content = { type = "btrfs"; extraArgs = ["-f"];
subvolumes = {
"/root" = {
mountpoint = "/";
};
"/persist" = {
mountOptions = ["subvol=persist" "noatime"];
mountpoint = "/persist";
};
"/nix" = {
mountOptions = ["subvol=nix" "noatime"];
mountpoint = "/nix";
};
};
};
};
};
};
};
}; } ""
| 23:26:32 |
wolfeexd | if /dev/disk/by-id/xxx is just a link to /dev/sdx then im not sure what would grub to fail | 23:27:42 |
Philip Taron (UTC-8) | In reply to @wolfeexd:matrix.org if /dev/disk/by-id/xxx is just a link to /dev/sdx then im not sure what would grub to fail I think this link is made by systemd-udevd and happens quite late | 23:29:00 |
| 9 Jul 2024 |
wolfeexd | * if /dev/disk/by-id/xxx is just a link to /dev/sdx then im not sure what would cause grub to fail | 00:22:47 |
| eyJhb joined the room. | 10:23:44 |
| @guanran928:mozilla.org left the room. | 17:48:01 |
matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) | Anyone wanna review https://github.com/NixOS/nixpkgs/pull/325619 so I can improve disko with https://github.com/nix-community/disko/pull/698 | 18:24:04 |
matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) | Or offer a better idea | 18:24:30 |
matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) | lassulus: fwiw k900 suggested something about binfmt namespaces making this less of an issue | 18:32:13 |
matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) | binfmt is an impurity, so in flakes can be modelled as packages.x86_64-linux-binfmt for example | 18:32:28 |
matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) | * binfmt is an impurity, so in flakes can be modelled as packages.x86_64-linux.binfmt-foo for example | 18:32:37 |
matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) | dare we make platform quads instead of platform triples? Lol | 18:32:52 |
matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) | pkgsBinfmt could exist in a binfmt namespace world | 18:33:09 |
matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) | but for the time being this customQemu work around, allows you to do what you want | 18:33:22 |
| 10 Jul 2024 |
| atagen joined the room. | 04:53:05 |
| 12 Jul 2024 |
| nrv joined the room. | 09:40:00 |
nrv | What might be the reason disko can't cryptsetup? (cannot resolve path /dev/mapper/my-name) (it's not used) | 09:45:24 |
nrv | I don't know what to say. Disko/sgdisk/linux just behaves randomly for some reason | 09:46:30 |
lassulus | when does this happen? | 09:47:37 |
lassulus | during formating or booting? | 09:47:43 |
nrv | At first i think miscalculated the sizes. sgdisk would say cannot make partition and refuse going further. That is ok. But then this, and also partprobe broke and said to reboot, and also sgdisk were spitting random numbers instead of ones that i give to it | 09:48:07 |
nrv | In reply to @lassulus:lassul.us during formating or booting? Formatting, i use --mode format | 09:48:26 |
nrv | In reply to @nevrv:matrix.org At first i think miscalculated the sizes. sgdisk would say cannot make partition and refuse going further. That is ok. But then this, and also partprobe broke and said to reboot, and also sgdisk were spitting random numbers instead of ones that i give to it Ah and the important part that it worked once! But only once. I can't reproduce it with the same config | 09:48:52 |
nrv | This is insanity | 09:49:03 |
lassulus | maybe some partition of the disk is in use? are you doing this from a live image? what does the config look like | 09:49:16 |