!oNSIfazDqEcwhcOjSL:matrix.org

disko

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

Load older messages


SenderMessageTime
13 Feb 2024
@lassulus:lassul.uslassulus
In reply to @adam:robins.wtf
meaning, generated and added to your configuration. as a way to bootstrap an existing host where you don't want to wipe the entire table
yeah, that part wouldn't probably be too hard, usually only the partitions care deeply about the exact sectors they are on, but the updateScript probably wouldn't change them if they are missaligned, just print a warning, so you could just roughly sketch out your current disk layout and then apply the update script and it would fill in the missing bits
01:30:04
@lassulus:lassul.uslassulusI was a bit lazy with the update script thing though01:30:11
@maralorn:maralorn.demaralorn adamcstephens 🐝: I am looking at https://github.com/nix-community/disko/pull/499. From the comment at your example I am expecting something like bind mounts to mount the subvolumes at their mountpoints. But I see no code in the module which does that.
(Maybe I don’t understand what "they will be remounted automatically" means.)
01:30:37
@maralorn:maralorn.demaralornSpeaking of: Can someone point me to a bind mount example with disko? I somehow can’ find it.01:33:17
@lillecarl:matrix.orglillecarl
In reply to @lassulus:lassul.us
do you have boot.swraid.enable?
Thanks 😸 I've been wondering for awhile
01:34:28
@lassulus:lassul.uslassulus
In reply to @maralorn:maralorn.de
Speaking of: Can someone point me to a bind mount example with disko? I somehow can’ find it.
usually bind mounts are just managed with fileSystems.${target} = { device = src; options = [ "bind" ]; };
01:37:19
@lassulus:lassul.uslassulusbut if you need them during installation you have to do them with the hooks and a shell snippet01:37:40
@maralorn:maralorn.demaralorn
In reply to @lassulus:lassul.us
usually bind mounts are just managed with fileSystems.${target} = { device = src; options = [ "bind" ]; };
Does that work for /nix?
01:39:36
@lassulus:lassul.uslassulusgood question, never tried01:39:50
@adam:robins.wtf@adam:robins.wtf
In reply to @maralorn:maralorn.de
adamcstephens 🐝: I am looking at https://github.com/nix-community/disko/pull/499. From the comment at your example I am expecting something like bind mounts to mount the subvolumes at their mountpoints. But I see no code in the module which does that.
(Maybe I don’t understand what "they will be remounted automatically" means.)
bcachefs subvolumes aren't separate mount points
01:39:55
@maralorn:maralorn.demaralorn
In reply to @lassulus:lassul.us
but if you need them during installation you have to do them with the hooks and a shell snippet
Well, I am quite used to manually mounting my stuff, so that’s fine.
01:40:15
@maralorn:maralorn.demaralorn
In reply to @adam:robins.wtf
bcachefs subvolumes aren't separate mount points
I know. That’s why I want to use bind mounts.
01:40:35
@lassulus:lassul.uslassulusI guess you can do the bind muunt on a postMountHook on the btrfs rootfs?01:41:09
@maralorn:maralorn.demaralornAh, related beast: Can I mount my disk at / and then bindmount a subdirectory of that disk to / effectively making the original filesystem root inaccessible?01:43:14
@lassulus:lassul.uslassulusnot sure why not, but never tested it :D01:46:02
@lassulus:lassul.uslassulusmaybe it becomes a loop thingie?01:46:14
@maralorn:maralorn.demaralornWell, maybe it’s not worth the complexity.01:55:55
@adam:robins.wtf@adam:robins.wtfis there a need to have them mounted separately?01:56:22
@maralorn:maralorn.demaralornDon’t know.01:56:51
@maralorn:maralorn.demaralornI guess the easiest solution would be: Mount bcachefs on /, have /nix and /disk (that’s my data partition) be subvolumes. Then on boot reset / to be empty with exception of /nix and /disk.01:58:15
@maralorn:maralorn.demaralornOnly question is: Is that possible with bcachefs?01:58:47
@adam:robins.wtf@adam:robins.wtf the subvolume stuff is very basic 01:59:28
@adam:robins.wtf@adam:robins.wtfhttps://bcachefs-docs.readthedocs.io/en/latest/feat-subvolumes.html01:59:36
@adam:robins.wtf@adam:robins.wtfit seems like you probably want btrfs or zfs instead01:59:56
@maralorn:maralorn.demaralornI most certainly want btrfs.^^02:36:33
@maralorn:maralorn.demaralornI have been using it for 10 years and I am sick of it.^^02:36:46
@maralorn:maralorn.demaralorn
In reply to @lassulus:lassul.us
not sure why not, but never tested it :D
Seems to work, when I do it manually.
02:37:11
@maralorn:maralorn.demaralorn * I most certainly don’t want btrfs.^^02:37:26
@maralorn:maralorn.demaralornSo here is my scheme: mount fs at /, remove subvolume /fsroot if exists, create subvolume /fsroot, bind mount /nix to /fsroot/nix and /disk to /fsroot/disk, bind mount /fsroot to /.02:39:03
@maralorn:maralorn.demaralornThat we I start every boot with a clean / which has the same /nix and /disk.02:39:37

Show newer messages


Back to Room ListRoom Version: 10