| 28 Feb 2024 |
n3v3r_a9a1n | * | 18:58:33 |
| 29 Feb 2024 |
lassulus | Probably the disko one if you want to use disko | 05:37:25 |
Mic92 | lassulus: first version is ready for review: https://github.com/nix-community/disko/pull/548 | 13:56:40 |
Mic92 | Now added a NixOS test. | 13:56:46 |
lassulus | Have to check tomorrow | 14:41:53 |
raitobezarius | disko authors, I want to poke your brain on a usecase I have | 23:57:48 |
raitobezarius | I am building auto installing images with disko + nixos-install etc. | 23:58:00 |
raitobezarius | I have various variants I can use dynamically to execute different disko scripts | 23:58:09 |
raitobezarius | But sometimes I also have dynamic disks | 23:58:14 |
raitobezarius | Do you think I could just put $PRIMARY_DISK inside of the disk device defn | 23:58:23 |
raitobezarius | and fill them in the environment of the disko script at runtime? | 23:58:30 |
raitobezarius | (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 | * (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 | while I could emulate NVMe devices to have the exact same thing in QEMU, I wonder about supporting those usecases | 23:59:49 |
| 1 Mar 2024 |
lassulus | 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 | 00:31:12 |
raitobezarius | funnily, I am debugging a case where I use the .raw generation | 00:31:52 |
raitobezarius | and mount it using QEMU and the disk doesn't show up at boot | 00:31:58 |
raitobezarius | which seems to hint at missing drivers or something | 00:32:03 |
raitobezarius | 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 | I have disk without label | 00:35:00 |
raitobezarius | * I have disks without label | 00:35:02 |
raitobezarius | so I need to use sdx/vdx/nvmexyz | 00:35:09 |
raitobezarius | or I need to use things like wwn | 00:35:14 |
raitobezarius | but it's hard to get WWN beforehand in Netbox or something | 00:35:22 |
raitobezarius | this would require a new inventory discipline that I don't have right now | 00:35:29 |
lassulus | no gpt type will take /dev/sda or /dev/nvmexxx and will format it and then use /dev/disk/by-partlabel for all operations afterwards | 00:37:46 |
lassulus | so the device should be used at just one location | 00:38:04 |
raitobezarius | yeah | 00:40:34 |
raitobezarius | so the thing i am talking about is the initial formatting | 00:40:40 |
lassulus | ok, but then you should be able to use an environment variable as the initial device | 00:41:40 |