!oNSIfazDqEcwhcOjSL:matrix.org

disko

396 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko105 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
19 Feb 2025
@elschug:matrix.orgElmar Schug joined the room.09:25:51
@projectinitiative:matrix.orgprojectinitiativeAnyone know the best way to pass `pkgs` to the gpt.nix module? I'm experimenting with the partition uuid 15:28:34
@lehmanator:tchncs.deSam Lehman

How are you debugging disko configs?

I have been repeatedly building system.build.vmWithDisko, but the edit -> rebuild feedback loop takes too long, & the build logs yield too little information.

18:14:09
@lehmanator:tchncs.deSam Lehman

I've been getting the error:

mount: /mnt/: wrong fs type, bad option, bad superblock on /dev/mapper/pool-system, missing codepage or helper program, or other error.
    dmesg(1) may have more information after failed mount system call.

Not sure if I'm missing a dep or have something misconfigured. Is there a way to drop into this environment when the build fails, so I can actually run dmesg or inspect the fs & builder shell environment?

18:19:38
20 Feb 2025
@projectinitiative:matrix.orgprojectinitiativeI add an example in the examples folder in a local copy of the disko repo. Then I add that example to the flake.nix file under the testmachine config. Then I load the flake with nix repl and play around with values and functions04:44:23
@smolp:matrix.org@smolp:matrix.orgYou can with nixos-anywhere20:42:11
21 Feb 2025
@clay53:claytonhickey.meclay53 joined the room.01:12:42
@projectinitiative:matrix.orgprojectinitiative

what is the rationale behind the following in the _create of types/gpt.nix

        if ! blkid "${config.device}" >&2; then
          sgdisk --clear "${config.device}"
        fi

I say this because when working on the more advanced bcachefs, I have mostly everything working, except the reformat test, as wipefs and all of the disk deactivation doesn't fully clear bcachefs superblocks and such. blkid still returns a value. Thus when trying to re-partition, there are alignment errors since it never gets cleared.

Ultimately: what is the use case of this check? Would we not want to always clear before attempting a partitioning?

06:14:47

Show newer messages


Back to Room ListRoom Version: 10