!oNSIfazDqEcwhcOjSL:matrix.org

disko

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

Load older messages


SenderMessageTime
13 Feb 2024
@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
@raitobezarius:matrix.orgraitobezariusUntil then, I prefer to avoid running impermanence if I'm not ready to pull debugging tools for myself03:20:06
@adam:robins.wtf@adam:robins.wtfi totally get the desire to find something better than btrfs. :) i'm running some bcachefs and it does the job, but as raito says it needs more time03:20:36
@adam:robins.wtf@adam:robins.wtf * i totally get the desire to find something better than btrfs. :) i'm running some bcachefs and it does the job, but as raito says it needs more time to get more features03:20:44
@raitobezarius:matrix.orgraitobezariusRight now, the biggest battle is convincing people to let bcachefs use Rust in the kernel tree for next upgrades03:20:45
@maralorn:maralorn.demaralorn raitobezarius: But do you see any problems for the tmpfs based approach? 03:21:49
@raitobezarius:matrix.orgraitobezarius
In reply to @maralorn:maralorn.de
raitobezarius: But do you see any problems for the tmpfs based approach?
you need to mount fsroot somewhere in that approach
03:22:10
@raitobezarius:matrix.orgraitobezariusbut once you do, yes, you can bind mount everything back and done03:22:19
@maralorn:maralorn.demaralornAh, true, yeah I also need bindmounts there.^^03:22:41
@maralorn:maralorn.demaralornbut those are easy.03:22:49
@raitobezarius:matrix.orgraitobezariusalso, not sure what is the current state of things03:22:52
@raitobezarius:matrix.orgraitobezariusbut isn't tmpfs on / problematic because tmpfs does not support every classical fs features?03:23:02
@raitobezarius:matrix.orgraitobezariushttps://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfsprogs-dev.git/tag/?h=health-monitoring_2024-02-12 zfs but it's called xfs now03:23:28
@maralorn:maralorn.demaralornHaven’t experienced any problems with that and I am running that setup for at least two years.03:23:35
@raitobezarius:matrix.orgraitobezariusNice03:23:41
@maralorn:maralorn.demaralornBut seriously: How bad would the "ls / | grep -v "^(nix|disk)$ | xargs rm -rf" solution be?03:25:13
@maralorn:maralorn.demaralornIt can’t be that more expensive than a subvolume deletion, can it?^^03:25:41
@maralorn:maralorn.demaralorn
In reply to @maralorn:maralorn.de
But seriously: How bad would the "ls / | grep -v "^(nix|disk)$ | xargs rm -rf" solution be?
With the obvious caveat that it will take me ages to get that shell script completely correct.^^
03:26:16
@raitobezarius:matrix.orgraitobezarius
In reply to @maralorn:maralorn.de
It can’t be that more expensive than a subvolume deletion, can it?^^
I don't remember otoh if subvolume deletion is lazy
03:27:12
@raitobezarius:matrix.orgraitobezarius In which case, rm is slower 03:27:20
@raitobezarius:matrix.orgraitobezarius I don't think this is a big deal in the end as long as you are satisfied  03:27:48
@maralorn:maralorn.demaralornThe beauty is: I can even do a snapshot before hand.03:29:12

Show newer messages


Back to Room ListRoom Version: 10