-
-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect ZFS command when making zpool(?) #820
Comments
Can you post your disko configuration? |
@Enzime they linked the two configs they tried. The second config is invalid, because you're using the filesystem type instead of the zfs type: primary = {
size = "100%";
content = {
type = "filesystem";
format = "zfs";
};
};
primary = {
size = "100%";
content = {
type = "zfs";
pool = "sys";
};
}; And as you correctly observe, it doesn't call the non-existing Your config looks correct, and I don't see any errors in the screenshots you posted. If you use What do you see when running Also, you should be able to scroll up with the PgUp and PgDown keys. |
Where did you find it, exactly? Searching the entire repo for Ahhhhh haha I figured it out!. Shortened, you config looks like this:
So you're defining the
Or nest everything under
This is the sort of configuration issue that's hard to detect with nix itself, and I hope to remedy with #789 |
I pulled the example config from https://github.com/nix-community/disko/blob/master/example, which is found under the Overview Section of the README (See below.) I see, and this does seem to be the case. Adding Side note, is there a more effective method to mount ZFS datasets instead of the legacy format? Is the typical ZFS automount reliable on NixOS at all? In any case my updated config works as expected now, I appreciate the help. |
As I said, none of those examples contains the string
Yes, this is a known issue: #560
You can set This is the setup I'm using and it works reliably. However, there is a small trade-off for things like |
Well I did some looking, and it turns out that I edited more than I remembered I did, including the |
Great to hear! |
we could throw an error if we encounter something like
inside a config? and tell people to use the zfs/zpool types instead |
Hi all, it seems that Disko calls a non-existent command when trying to create a ZPool. It tries to call
mkfs.zfs
which does not exist, instead of something likezpool create
Originally I tried to use disko with this config, and after applying fixes from #765 it does create all the partitions successfully, up to creating the partition where ZFS would occupy, but fails to actually create any ZPool or datasets, but gives no mention of the aforementioned
mkfs.zfs
command (at least within visible terminal history.)I then tried to use a modified version of a ZFS template config but had no luck with that either, but this config does mention the
mkfs.zfs
command, and that it does not exist.Please note that I ran
sudo wipefs -fa /dev/sda
between using each config file to make sure that they didn't interfere with each other.The text was updated successfully, but these errors were encountered: