!oNSIfazDqEcwhcOjSL:matrix.org

disko

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

Load older messages


SenderMessageTime
29 Feb 2024
@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
@lassulus:lassul.uslassulusand fill it dynamically when you execute the diskoScript00:41:50
@raitobezarius:matrix.orgraitobezarius
In reply to @lassulus:lassul.us
ok, but then you should be able to use an environment variable as the initial device
yeah, just trying to confirm if it makes sense to you
00:41:50
@raitobezarius:matrix.orgraitobezarius like having this weird device = "$PRIMARY_DISK"; ? 00:42:04
@lassulus:lassul.uslassulusyeah, that should work00:42:14
@lassulus:lassul.uslassulusbut not sure that it actually does :)00:42:20
@raitobezarius:matrix.orgraitobezariusack00:42:23
@raitobezarius:matrix.orgraitobezariuswill try00:42:27
@lassulus:lassul.uslassulusbut if it doesn't that is a bug worth fixing00:42:28
@raitobezarius:matrix.orgraitobezariusif i find things00:42:28
@raitobezarius:matrix.orgraitobezariusi will send you PRs00:42:30

Show newer messages


Back to Room ListRoom Version: 10