disko | 367 Members | |
| disko - declarative disk partitioning - https://github.com/nix-community/disko | 93 Servers |
| Sender | Message | Time |
|---|---|---|
| 6 Apr 2024 | ||
would be cool to put that in passtrhu | 19:38:56 | |
* would be cool to put that in passthru | 19:38:59 | |
In reply to @lassulus:lassul.usthat's what I wanted to do | 19:52:13 | |
| 7 Apr 2024 | ||
| Btw, I don't know if it is intended, but this command returns exit code 0 when partition exists https://github.com/nix-community/disko/blob/0a17298c0d96190ef3be729d594ba202b9c53beb/lib/types/gpt.nix#L158 Should I open an issue on GitHub? | 10:00:59 | |
| hmm, what is the problem? | 10:02:55 | |
| ah maybe an ! is missing | 10:04:51 | |
| but not sure how it even gets to that point, since it will skip the whole if statement if a table exists on line 156 | 10:06:21 | |
| I am not familiar with the code, but this line has 3 possible states (from my understanding) - partition table does not exist - partition does not exist - partition exists In bottom two sgdisk exits with 0 code, but in first with some other (don't remember exactly). Though if partition table doesn't exist, it will be created on top of the script | 10:06:40 | |
| but not sure there is a scenario where a partition table does not exist but a partition? | 10:07:33 | |
| either way, the code doesn't do whats intended :) | 10:07:46 | |
In reply to @lassulus:lassul.usI deleted the part that created the partition table, that's how it did for me So if the scenario where sgdisk exits with non zero doesn't exist, why is there an if statement? | 10:08:26 | |
In reply to @lassulus:lassul.us* I deleted the part that created the partition table, that's how it did for me (not saying you should support this use case) So if the scenario where sgdisk exits with non zero doesn't exist, why is there an if statement? | 10:09:07 | |
| well I wanted to create it in the case where the table exists but the partition does not | 10:11:55 | |
| I will prepare a commit | 10:12:02 | |
| give me 5min | 10:12:04 | |
| I already did everything with my disk, it is not a blocker for me | 10:12:38 | |
| * I already did everything with my disk, it is not a problem for me | 10:12:47 | |
| Just a thing I noticed | 10:12:59 | |
| halo! has anyone achieved disko + nixos-anywhere + impermanence btrfs? (+sops) | 10:13:01 | |
In reply to @xxxcrow:matrix.orgVimjoyer did config for btrfs + impermanence, don't know about other things https://youtu.be/YPKwkWtK7l0?feature=shared | 10:14:30 | |
| hmm, indeed weird, that sgdisk exists with 0 on an error | 10:20:57 | |
In reply to @perchun:matrix.org disko has gone crazy, or me?
mounts / in /root | 10:34:06 | |
In reply to @xxxcrow:matrix.orgIt backups all your data on every reboot. I can show you the folder structure when I arrive home | 10:35:16 | |
| so, i can find all the stuff in /root directory | 10:35:16 | |
In reply to @perchun:matrix.orgi mean, it's not even that much of impermanence, but really about disko | 10:36:14 | |
| ok, this is the drive:
| 10:36:46 | |
| When you're booted into the system, root is in /. When you mount the disk, structure is something like ``` - nix/store - old_roots - $(date) # older than 30d are automatically deleted - root - and some fourth folder name of which I completely forgot ``` | 10:37:23 | |
| Fourth is persist | 10:38:10 | |
| Btw, here is how you can use it with luks https://gist.github.com/PerchunPak/0df4fa9117dfb036b0564a9f058f539c | 10:39:49 | |
In reply to @xxxcrow:matrix.orgok, what do you thing the result of this would be? | 10:42:22 | |