disko | 364 Members | |
| disko - declarative disk partitioning - https://github.com/nix-community/disko | 94 Servers |
| Sender | Message | Time |
|---|---|---|
| 20 May 2025 | ||
| 05:56:01 | ||
| 21 May 2025 | ||
| 09:33:15 | ||
| 17:41:46 | ||
| 18:21:23 | ||
| 22:18:49 | ||
| 22 May 2025 | ||
| 04:23:09 | ||
| I have recently reinstalled a number of my systems to have encrypted bcachefs as rootfs but there is a usability issue because it asks my password several times on boot: https://git.chir.rs/darkkirb/nixos-config/raw/branch/main/machine/rainbow-resort/disko.nix | 04:31:04 | |
| @lotte:chir.rs: I also find that interaction to be annoying. Maybe we should add a systemd service that receives the password from user input once, stores it in a variable, then runs the mount commands for each of the subvolumes in the encrypted filesystem, passing in the password using input redirection? I'm not sure how likely that is to work though. | 16:33:00 | |
| for systemd initrds this one seems to work around it: https://git.chir.rs/darkkirb/nixos-config/raw/branch/main/modules/bcachefs.nix | 16:34:44 | |
| 22:16:42 | ||
| hi all, Im attempting to use disko to replicate the partitioning and formatting steps as described by the nixos manual this is what I have so far
sorry for any typos, Im literally having to copy this from the tty evidently, the above did not work with I got an error that I will try to get word-for-word here (I cant quite yet get it, because I cant scroll in tty and havent used a pager yet) but the error was related to “cannot create name disk-main-root”, and then “cannot set code 8300” | 22:32:13 | |
| let me try getting the exact error, one second | 22:32:22 | |
Unable to set partition 2’s name to ‘disk-main-root’!Could not change partition 2’s type code to 8300! | 22:33:25 | |
| could anyone help me with? | 22:33:54 | |
| again, im just trying to replicate the steps from the nixos manual (https://nixos.org/manual/nixos/stable/#sec-installation) | 22:34:59 | |
| i’ve also tried adding for some reason, | 22:49:04 | |
for reference, an ls into /dev/disk/by-partlabel when following the instructions (https://nixos.org/manual/nixos/stable/#sec-installation-manual-partitioning-UEFI) gives ESP root swap, but the above disko config is giving me a disk-main-ESP, as is expected by the erroneous switch of sgdisk | 23:00:24 | |
im noticing the same behavior with simple.efi (https://raw.githubusercontent.com/nix-community/disko/refs/heads/master/example/simple-efi.nix) | 23:27:04 | |
| 23 May 2025 | ||
| it seems the end of your ESP partition is on the same block as your root partition | 07:08:30 | |
| and it's end overlaps with the swap partition | 07:08:40 | |
| if you want to override the label, you need to set label on the partition | 07:08:54 | |
| 14:26:16 | ||
| so, concretely, I need to use a also, how does my ESP partition overflow into my other partitions? the only way that I can think of is if so you’re saying that both | 18:30:01 | |
| I say its weird because this how we make the partitions according to the nixos manual mkpart ESP fat32 1MB 512MB mkpart root ext4 512MB -8GB mkpart swap linux-swap -8GB 100% | 18:31:29 | |
| so I quite literally just attempted copying that | 18:31:40 | |
| yes, they are sadly inclusive, not sure why sgdisk was built that way :D | 18:33:05 | |
| thats why I usually leave start empty, because 0 will pick the next empty space | 18:33:32 | |
| ah so its sgdisk’s fault. alright, thanks! | 18:33:52 | |
| I thought about different ways to fix that in disko, but nothing good comes to mind, maybe there is a way to do a 1 block addition in the specification? but on my last search I didn't find anything | 18:35:05 | |
| 24 May 2025 | ||
| 13:01:58 | ||