!oNSIfazDqEcwhcOjSL:matrix.org

disko

367 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko94 Servers

Load older messages


SenderMessageTime
16 Feb 2024
@palo:terranix.orgpalo

Hmm, this worked a while ago, and it's used in the examples?

20:30:22
@palo:terranix.orgpalo *

Hmm, this worked a while ago, and it's used in the examples?

error: The option `disko.devices.disk.sda.content.partitions."[definition 1-entry 2]".size' does not exist.
20:30:57
@palo:terranix.orgpalohttps://git.ingolf-wagner.de/palo/nixos-config/src/branch/main/nixos/machines/orbi/disko-config.nix#L42 < that's the line that is wrong.20:32:13
@palo:terranix.orgpalo

Hmm in the examples partitions is a attrs but When I do that. I get :

 A definition for option `disko.devices.disk.sda.content.partitions' is not of type `list of (submodule)'.
20:46:01
@palo:terranix.orgpalo Ok replacing size with end worked. 20:54:56
17 Feb 2024
@matthewcroughan:defenestrate.itmatthewcroughan lassulus: To explain the problem I found with hybrid, and why legacy is worth supporting, doing hybrid causes small issues with u-boot 04:53:23
@matthewcroughan:defenestrate.itmatthewcroughanspecifically, if you have a hybrid data structure, it loads u-boot in GPT mode04:53:37
@matthewcroughan:defenestrate.itmatthewcroughanin GPT mode, the MBR partitions cannot be seen04:53:44
@lassulus:lassul.uslassulusthat sounds like the intended use?04:53:58
@matthewcroughan:defenestrate.itmatthewcroughanSort of a problem with U-Boot, and it can be worked around, but it's such a PITA04:54:03
@lassulus:lassul.uslassuluswhats the issue with that?04:54:04
@matthewcroughan:defenestrate.itmatthewcroughanI suppose nothing if you know the solution, it's discovering the solution that is why it's worth supporting legacy04:54:19
@matthewcroughan:defenestrate.itmatthewcroughanbut yeah, if we can be a leading example of the solutions, then that works best04:54:49
@matthewcroughan:defenestrate.itmatthewcroughanOkay.. other things.. How about we try to make the image builder use binfmt inside the VM, so that we can build disk images for arm64 on an x86 host successfully? :D04:55:19
@lassulus:lassul.uslassulusbut hybrid gpt/mbr is only useful if you bootloader doesn't support gpt. and there is a fallback to mbr. but if uboot supports efi than it doesn't need to care for the mbr stuff?04:55:56
@lassulus:lassul.uslassuluswe should debug first where all the memory is eaten up :P04:56:16
@matthewcroughan:defenestrate.itmatthewcroughanlol, zram also "fixes" that :D04:56:29
@lassulus:lassul.uslassuluspff04:56:34
@matthewcroughan:defenestrate.itmatthewcroughanit works, undeniably04:56:41
@matthewcroughan:defenestrate.itmatthewcroughanbut still would be good to know where it is being used 04:56:56
@matthewcroughan:defenestrate.itmatthewcroughan
In reply to @lassulus:lassul.us
but hybrid gpt/mbr is only useful if you bootloader doesn't support gpt. and there is a fallback to mbr. but if uboot supports efi than it doesn't need to care for the mbr stuff?
the raspberry pi has boot firmware that only supports loading from mbr fat32, bootcode.bin must reside there
04:57:21
@lassulus:lassul.uslassulusit should work with 512m in the vm04:57:24
@matthewcroughan:defenestrate.itmatthewcroughan
In reply to @lassulus:lassul.us
it should work with 512m in the vm
yeah and I'm saying that tests that fail with 512M without zram, succeed with zram
04:58:13
@matthewcroughan:defenestrate.itmatthewcroughanwhich makes me question why we don't just enable zram generally in all VMs04:58:27
@lassulus:lassul.uslassulusthat sounds like a bug04:58:30
@matthewcroughan:defenestrate.itmatthewcroughanwell yeah, it's not good to mask issues, but it made me wonder how it could also improve performance04:58:47
@matthewcroughan:defenestrate.itmatthewcroughanwould a test that never fails, but reports used memory in the VM be a useful thing?05:00:19
@matthewcroughan:defenestrate.itmatthewcroughando we have a test that reports information and does not fail right now?05:00:47
@lassulus:lassul.uslassulusnot yet05:01:09
@matthewcroughan:defenestrate.itmatthewcroughanmaybe I should make a test that fails if the VM ever consumes more than 512 instead05:01:18

Show newer messages


Back to Room ListRoom Version: 10