| 13 Feb 2024 |
lassulus | 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 | I was a bit lazy with the update script thing though | 01:30:11 |
maralorn | 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 | Speaking of: Can someone point me to a bind mount example with disko? I somehow can’ find it. | 01:33:17 |
lillecarl | In reply to @lassulus:lassul.us do you have boot.swraid.enable? Thanks 😸 I've been wondering for awhile | 01:34:28 |
lassulus | 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 | but if you need them during installation you have to do them with the hooks and a shell snippet | 01:37:40 |
maralorn | 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 | good question, never tried | 01:39:50 |
@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 | 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 | 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 | I guess you can do the bind muunt on a postMountHook on the btrfs rootfs? | 01:41:09 |
maralorn | Ah, 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 | not sure why not, but never tested it :D | 01:46:02 |
lassulus | maybe it becomes a loop thingie? | 01:46:14 |
maralorn | Well, maybe it’s not worth the complexity. | 01:55:55 |
@adam:robins.wtf | is there a need to have them mounted separately? | 01:56:22 |
maralorn | Don’t know. | 01:56:51 |
maralorn | I 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 | Only question is: Is that possible with bcachefs? | 01:58:47 |
@adam:robins.wtf | the subvolume stuff is very basic | 01:59:28 |
@adam:robins.wtf | https://bcachefs-docs.readthedocs.io/en/latest/feat-subvolumes.html | 01:59:36 |
@adam:robins.wtf | it seems like you probably want btrfs or zfs instead | 01:59:56 |
maralorn | I most certainly want btrfs.^^ | 02:36:33 |
maralorn | I have been using it for 10 years and I am sick of it.^^ | 02:36:46 |
maralorn | 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 | * I most certainly don’t want btrfs.^^ | 02:37:26 |
maralorn | So 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 | That we I start every boot with a clean / which has the same /nix and /disk. | 02:39:37 |