!oNSIfazDqEcwhcOjSL:matrix.org

disko

369 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko95 Servers

Load older messages


SenderMessageTime
28 Feb 2024
@xxxcrow:matrix.orgn3v3r_a9a1n * 18:58:33
29 Feb 2024
@lassulus:lassul.uslassulusProbably the disko one if you want to use disko05:37:25
@joerg:thalheim.ioMic92 lassulus: first version is ready for review: https://github.com/nix-community/disko/pull/548 13:56:40
@joerg:thalheim.ioMic92Now added a NixOS test.13:56:46
@lassulus:lassul.uslassulusHave to check tomorrow 14:41:53
@raitobezarius:matrix.orgraitobezariusdisko authors, I want to poke your brain on a usecase I have23:57:48
@raitobezarius:matrix.orgraitobezariusI am building auto installing images with disko + nixos-install etc.23:58:00
@raitobezarius:matrix.orgraitobezariusI have various variants I can use dynamically to execute different disko scripts23:58:09
@raitobezarius:matrix.orgraitobezariusBut sometimes I also have dynamic disks23:58:14
@raitobezarius:matrix.orgraitobezarius Do you think I could just put $PRIMARY_DISK inside of the disk device defn 23:58:23
@raitobezarius:matrix.orgraitobezariusand fill them in the environment of the disko script at runtime?23:58:30
@raitobezarius:matrix.orgraitobezarius (mostly, I have divergence due to test environment under virtio do /dev/vdx, SCSI/SATA do /dev/sdx, NVMe do /dev/nvme* 23:59:32
@raitobezarius:matrix.orgraitobezarius * (mostly, I have divergence due to test environment under virtio do /dev/vdx, SCSI/SATA do /dev/sdx, NVMe do /dev/nvme*) 23:59:33
@raitobezarius:matrix.orgraitobezariuswhile I could emulate NVMe devices to have the exact same thing in QEMU, I wonder about supporting those usecases23:59:49
1 Mar 2024
@lassulus:lassul.uslassulusin theory it should work with the gpt type. since we use labels there. in practice this was never tested and somethng will probably break but should be easily fixable00:31:12
@raitobezarius:matrix.orgraitobezariusfunnily, I am debugging a case where I use the .raw generation00:31:52
@raitobezarius:matrix.orgraitobezariusand mount it using QEMU and the disk doesn't show up at boot00:31:58
@raitobezarius:matrix.orgraitobezariuswhich seems to hint at missing drivers or something00:32:03
@raitobezarius:matrix.orgraitobezarius
In reply to @lassulus:lassul.us
in theory it should work with the gpt type. since we use labels there. in practice this was never tested and somethng will probably break but should be easily fixable
but how does that work with label
00:34:57
@raitobezarius:matrix.orgraitobezariusI have disk without label00:35:00
@raitobezarius:matrix.orgraitobezarius * I have disks without label00:35:02
@raitobezarius:matrix.orgraitobezariusso I need to use sdx/vdx/nvmexyz00:35:09
@raitobezarius:matrix.orgraitobezariusor I need to use things like wwn00:35:14
@raitobezarius:matrix.orgraitobezariusbut it's hard to get WWN beforehand in Netbox or something00:35:22
@raitobezarius:matrix.orgraitobezariusthis would require a new inventory discipline that I don't have right now00:35:29
@lassulus:lassul.uslassulusno gpt type will take /dev/sda or /dev/nvmexxx and will format it and then use /dev/disk/by-partlabel for all operations afterwards00:37:46
@lassulus:lassul.uslassulusso the device should be used at just one location00:38:04
@raitobezarius:matrix.orgraitobezariusyeah00:40:34
@raitobezarius:matrix.orgraitobezariusso the thing i am talking about is the initial formatting00:40:40
@lassulus:lassul.uslassulusok, but then you should be able to use an environment variable as the initial device00:41:40

Show newer messages


Back to Room ListRoom Version: 10