| 31 Jan 2025 |
@elvishjerricco:matrix.org | Anyway can't you just delete the subvolume, rather than rm'ing it? | 14:30:16 |
@elvishjerricco:matrix.org | then you wouldn't even need the chattr | 14:30:26 |
@elvishjerricco:matrix.org | Yea, there's a btrfs subvolume delete command | 14:31:22 |
Rayane Nakib (ريّان نقيب) | In reply to @elvishjerricco:matrix.org Yea, there's a btrfs subvolume delete command This command doesn't work | 14:32:37 |
Rayane Nakib (ريّان نقيب) | even with --commit-after option | 14:33:11 |
@elvishjerricco:matrix.org | why not? | 14:33:21 |
@elvishjerricco:matrix.org | the command is there for a reason; presumably it's capable of working | 14:33:37 |
Rayane Nakib (ريّان نقيب) | I don't know?! I am not on my PC right now, But I will post the error message that I get when I get the chant | 14:34:22 |
Rayane Nakib (ريّان نقيب) | * | 14:34:39 |
Rayane Nakib (ريّان نقيب) | * | 14:34:51 |
Rayane Nakib (ريّان نقيب) | * | 14:35:10 |
Alyssa Ross | wfm | 14:36:08 |
Alyssa Ross | I do a very similar thing in initrd, although I'm still on the non-systemd one I think | 14:36:28 |
@elvishjerricco:matrix.org | sidenote, the impermanence readme really ought to include a solid systemd initrd example. | 14:36:32 |
Alyssa Ross | https://git.qyliss.net/nixlib/tree/sys/mbp.nix#n18 | 14:37:27 |
Rayane Nakib (ريّان نقيب) | In reply to @elvishjerricco:matrix.org sidenote, the impermanence readme really ought to include a solid systemd initrd example. And an option to just delete the old root, or keep only one version, I have limited space im my laptop, I can't have 30 days old files there. | 14:37:42 |
Alyssa Ross | Being able to remove a directory without being able to recurse is to me the main appeal of subvolems | 14:38:23 |
Alyssa Ross | * | 14:38:28 |
Rayane Nakib (ريّان نقيب) | In reply to @qyliss:fairydust.space Being able to remove a directory without being able to recurse is to me the main appeal of subvolumes I couldn't make it work. | 14:38:59 |
@elvishjerricco:matrix.org | (sidenote, update that to postResumeCommands rather than postDeviceCommands, if you care at all about not having horrible breakage if you use hibernation) | 14:39:08 |
Alyssa Ross | I don't use hybernation, but that sounds like a good change to make regardless, thank you. | 14:40:39 |
Alyssa Ross | In reply to @nakibrayane:matrix.org I couldn't make it work. You don't have nested subvolumes in there, do you? | 14:41:01 |
Alyssa Ross | systemd will make some | 14:41:04 |
Alyssa Ross | like /var/lib/machines and /var/lib/portables | 14:41:15 |
@elvishjerricco:matrix.org | wait systemd just implicitly creates subvolumes? | 14:41:32 |
Alyssa Ross | It comes with default tmpfiles.d rules that do | 14:41:41 |
@elvishjerricco:matrix.org | huh | 14:41:46 |
@elvishjerricco:matrix.org | odd | 14:41:48 |
Alyssa Ross | it's very annoying because things will then fail if those paths are symlinks | 14:42:07 |
Alyssa Ross | so they need to be bind mounts instead | 14:42:22 |