disko | 360 Members | |
| disko - declarative disk partitioning - https://github.com/nix-community/disko | 90 Servers |
| Sender | Message | Time |
|---|---|---|
| 13 Mar 2025 | ||
I have a ZFS mirror running as root that was formatted with disko. If I replaced both drives one at a time (i.e. with zpool offline and zpool replace), would the initramfs know where to look to mount the root partition next time I boot? | 15:58:40 | |
in my disko config the drives are referred to as /dev/disk/by-id identifies, so I want to make sure that there is no hard-coded fstab entry or anything that uses those | 15:59:56 | |
* in my disko config the drives are referred to as /dev/disk/by-id identifiers, so I want to make sure that there is no hard-coded fstab entry or anything that uses those | 16:00:27 | |
| 17:48:08 | ||
| 14 Mar 2025 | ||
| In a typical zfs setup, fstab doesn't reference the underlying devices but only the datasets (i.e. rpool/root, not /dev/disk/by-id/...) here. the initrd pretty much does a zpool import on boot, so you should be good after zpool replace. (but no warranty and all ;)) | 15:46:25 | |
| * In a typical zfs setup, fstab doesn't reference the underlying devices but only the datasets (i.e. rpool/root, not /dev/disk/by-id/...) here. the initrd pretty much does a zpool import on boot, so you should be good after zpool replace. (but no warranty as usual ;)) | 15:46:32 | |
| I see. So I understand that it works roughly like: ZFS scans all storage devices for zfs disks, and then makes the pools it finds available which can be referred to by name in the legacy mount scripts? | 15:48:01 | |
| Yes, exactly | 15:48:34 | |
| Had missed that one before: but that's exactly how it is. It should be safe to re-run but as the license says: this software comes without warranty of any kind. So better check your backups ;) | 15:51:09 | |
| Not a btrfs user myself, but the conflicting definitions do sound solvable. Do you have your config online somewhere? | 15:55:08 | |
| 16 Mar 2025 | ||
| 21:18:49 | ||
| 22:38:51 | ||
| 23:41:31 | ||
| 17 Mar 2025 | ||
| 04:38:41 | ||
| 17:46:50 | ||
| 18:59:58 | ||
| 18 Mar 2025 | ||
Any opposition to renaming installTest to diskoInstallTest ? | 18:06:55 | |
or in putting disko attrs into a disko set? like system.config.build.disko.installTest? | 18:07:23 | |
It has always annoyed me when trying to find installTest, because I ignore this attribute believing it to be a nixpkgs one, not realising disko introduced it | 18:07:48 | |
| 18:36:34 | |
| Did not realise before that the disko script was not runnable | 18:36:41 | |
| 19 Mar 2025 | ||
| 03:05:37 | ||
| Hi! I've used disko with nixos-anywhere on a few machines and now on a newer machine having some trouble. Not sure if I broken something in the config or something changed out since NixOS has been bumped since then. I'm seeing this error and no idea what it means:
Does it mean that it can't find the disk device so it's not able to build a script? Perhaps I've provided the wrong device? I triple checked it though and it seems to be correct. | 03:09:45 | |
if you open nix repl ~/Code/nixcfg then type in nixosConfigurations.msi-linux.config.system.build.toplevel | 03:13:26 | |
| what happens? | 03:13:34 | |
| Says it's missing. I must have a typo in my root flake? Looking | 03:15:22 | |
| Ugh, I put the host config one level too high in the scope. Surprised the it didn't cause problems when I tried building other machines that are also defined in the flake | 03:16:51 | |
| thank you! | 03:16:52 | |
| I need to get more familiar with using the repl | 03:17:13 | |
Ok, another question, so I installed to a second drive. The first drive has windows. I'm going to change the boot order so that the linux drive is first. The problem is that it didn't register the drive with the boot manager. I had to manually run efibootmgr -c etc etc etc. Is there a way to make sure the second drive gets registered with the boot manager? | 04:42:45 | |