!oNSIfazDqEcwhcOjSL:matrix.org

disko

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

Load older messages


SenderMessageTime
18 Dec 2023
@jdemille:tchncs.deJulia DeMillehere's the config: https://pastebin.com/raw/ZK7SSgZs those lines are commented out to avoid breakage16:40:53
@matthewcroughan:defenestrate.itmatthewcroughanhttps://github.com/nix-community/disko/blob/master/example/btrfs-subvolumes.nix16:41:41
@matthewcroughan:defenestrate.itmatthewcroughan I don't see any @ in here? 16:41:50
@matthewcroughan:defenestrate.itmatthewcroughan what's the @ for 16:41:55
@jdemille:tchncs.deJulia DeMille personal convention -- believe it also is necessary for some snapshotting tools
regardless, the original @s didn't cause any issues
16:42:22
@matthewcroughan:defenestrate.itmatthewcroughanIs it a canonicalisation issue, i.e one path mounting before another, etc?16:42:41
@matthewcroughan:defenestrate.itmatthewcroughansee line 41 of the example16:42:55
@matthewcroughan:defenestrate.itmatthewcroughan

Sub(sub)volume doesn't need a mountpoint as its parent is mounted

16:43:23
@matthewcroughan:defenestrate.itmatthewcroughan * # Sub(sub)volume doesn't need a mountpoint as its parent is mounted 16:43:26
@matthewcroughan:defenestrate.itmatthewcroughan Subvolumes must set a mountpoint in order to be mounted, 16:43:49
@jdemille:tchncs.deJulia DeMille i mean, /opt is within the root subvolume, so /@opt-containers gets its own mountpoint 16:43:55
@jdemille:tchncs.deJulia DeMille * i mean, /opt is within the root subvolume, so /@opt-containers gets its own mountpoint, /opt/containers 16:43:59
@matthewcroughan:defenestrate.itmatthewcroughanHave you built the disko test that is part of your system config?16:44:38
@matthewcroughan:defenestrate.itmatthewcroughanmight be an easy way to iterate on it 16:44:47
@jdemille:tchncs.deJulia DeMilledisko test?16:44:55
@matthewcroughan:defenestrate.itmatthewcroughanYes, by including the disko config you posted, you not only get disko script to partition the disks, you also get a VM Test that is a member of your nixosConfiguration, which will allow you to build and test things, before deploying them to the real world 16:45:25
@matthewcroughan:defenestrate.itmatthewcroughan It's in config.system.build.installTest 16:46:53
@matthewcroughan:defenestrate.itmatthewcroughan I think it's a mistake to put it there, and it should be in config.system.build.disko.installTest but it's where it is for now 16:47:13
@jdemille:tchncs.deJulia DeMillei must admit, i am completely out of my element here, and have no idea what to do with that lol -- i appreciate your patience16:47:34
@matthewcroughan:defenestrate.itmatthewcroughanOh, so your nixosConfiguration is in a Flake right?16:47:45
@jdemille:tchncs.deJulia DeMilleyep16:47:53
@matthewcroughan:defenestrate.itmatthewcroughanso what is its name?16:47:57
@matthewcroughan:defenestrate.itmatthewcroughanthe name of the nixosConfiguration16:48:05
@jdemille:tchncs.deJulia DeMille callisto 16:48:08
@matthewcroughan:defenestrate.itmatthewcroughan so then nix build .#nixosConfigurations.callisto.config.system.build.installTest -L 16:48:21
@matthewcroughan:defenestrate.itmatthewcroughan

that will:

  1. build your nixosConfiguration
  2. boot a virtual machine
  3. format and provision virtual disks in that VM according to your disko.nix
16:49:36
@matthewcroughan:defenestrate.itmatthewcroughanif it fails, then you know something is up 16:49:41
@jdemille:tchncs.deJulia DeMillealright, one moment16:49:59
@jdemille:tchncs.deJulia DeMille confusingly, there is a line about md despite me not using it?
trace: warning: mdadm: neither MAILADDR nor PROGRAM has been set. This will cause the \mdmon` service to crash.`
16:51:36
@jdemille:tchncs.deJulia DeMille *

confusingly, there is a line about md despite me not using it?

trace: warning: mdadm: neither MAILADDR nor PROGRAM has been set. This will cause the `mdmon` service to crash.
16:51:57

Show newer messages


Back to Room ListRoom Version: 10