!oNSIfazDqEcwhcOjSL:matrix.org

disko

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

Load older messages


SenderMessageTime
13 Feb 2024
@maralorn:maralorn.demaralorn * That way I start every boot with a clean / which has the same /nix and /disk.02:40:42
@maralorn:maralorn.demaralornNo clue however if I can teach nixos to do those operations in that order.^^02:41:10
@maralorn:maralorn.demaralorn
In reply to @lassulus:lassul.us
maybe it becomes a loop thingie?
I think so. / would depend on itself before it can be mounted.
02:44:53
@hexa:lossy.networkhexa
In reply to @maralorn:maralorn.de
I most certainly don’t want btrfs.^^
I only recommend btrfs to my enemies
02:51:11
@raitobezarius:matrix.orgraitobezarius maralorn: bcachefs subvolumes are just directories with a special metadata attached 03:05:26
@raitobezarius:matrix.orgraitobezariuslike btrfs ones03:05:27
@raitobezarius:matrix.orgraitobezariusthe only thing btrfs has over bcachefs in this instance is a mount option to make the binding not require any "parent" to be mount IIRC03:06:36
@raitobezarius:matrix.orgraitobezarius(which is also fixable at bcachefs level if you are willing to do some C and Rust :P)03:07:07
@raitobezarius:matrix.orgraitobezarius(but it's on my todolist to fix anyway)03:08:18
@raitobezarius:matrix.orgraitobezarius
In reply to @maralorn:maralorn.de
No clue however if I can teach nixos to do those operations in that order.^^
I'd assume you'll need custom systemd unit code for this
03:10:50
@raitobezarius:matrix.orgraitobezariusor maybe even not if you can use the weird x.systemd-requires thingies to order your filesystem mountpoints magically03:11:37
@raitobezarius:matrix.orgraitobezariusto be precise: https://www.freedesktop.org/software/systemd/man/latest/systemd.mount.html03:12:26
@raitobezarius:matrix.orgraitobezariusIIRC, they can be passed as options to fileSystems.xyz.mountOptions or something03:12:51
@raitobezarius:matrix.orgraitobezariusthe only weird issue is that the last bind mount is going to redefine fileSystems."/" I guess (?)03:13:22
@maralorn:maralorn.demaralornThere is of course also the option of simply rollbacking manually with something like "rm -rf /" which excludes /nix and /disk.^^03:13:25
@maralorn:maralorn.demaralorn
In reply to @raitobezarius:matrix.org
the only weird issue is that the last bind mount is going to redefine fileSystems."/" I guess (?)
Yeah, thats exactly the part I am stumbling over.
03:13:54
@raitobezarius:matrix.orgraitobezariusI don't strongly recommend classical impermanence at this point with bcachefs03:13:54
@raitobezarius:matrix.orgraitobezariusNot that it doesn't work03:13:58
@raitobezarius:matrix.orgraitobezariusBut well, bcachefs is still an experimental filesystem in the kernel03:14:06
@raitobezarius:matrix.orgraitobezariusAnd snapshot code is the one that can exercise some annoyances03:14:13
@raitobezarius:matrix.orgraitobezarius(normally the fsck is automatic healing but you probably don't want to come to #bcache and do a plea for manual recovery of your stuff :p)03:14:46
@raitobezarius:matrix.orgraitobezarius
In reply to @maralorn:maralorn.de
Yeah, thats exactly the part I am stumbling over.
You can sidestep this difficulty by giving up on adequate nixos modelling and just having a "final-fixup" unit which is orchestrated before local filesystems are ready but after all the subvolumes are mount
03:15:16
@raitobezarius:matrix.orgraitobezariusI personally think it's easier to write the feature inside bcachefs then writing this sort of clunky of operations :D03:15:34
@raitobezarius:matrix.orgraitobezariusThis will have weird interactions with many things, notably if you do multi-device bcachefs03:15:45
@raitobezarius:matrix.orgraitobezarius(mounting a device in degraded, mount binding something coming from another location)03:16:05
@maralorn:maralorn.demaralorn
In reply to @raitobezarius:matrix.org
You can sidestep this difficulty by giving up on adequate nixos modelling and just having a "final-fixup" unit which is orchestrated before local filesystems are ready but after all the subvolumes are mount
That could actually work.
03:17:35
@raitobezarius:matrix.orgraitobezarius * I personally think it's easier to write the feature inside bcachefs than writing this sort of clunky of operations :D03:17:51
@maralorn:maralorn.demaralornAnyway. I have had great success with tmpfs on / for years. Would be stupid to change that exactly now where it becomes an uphill battle.03:18:37
@maralorn:maralorn.demaralornI just wanted to check out if I can do it the "proper" way.03:19:38
@raitobezarius:matrix.orgraitobezariusIn 6 mo - 1 year, maybe the proper way is fully fleshed out03:19:54

Show newer messages


Back to Room ListRoom Version: 10