You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
nix-env -u \* upgrades zfs package to the wrong kernel version #154
# uname -a
Linux nixos-vanilla 3.4.54 #1 SMP Tue Jul 23 21:48:39 UTC 2013 x86_64 GNU/Linux
# nix-env -i zfs-0.6.1-3.4.54
warning: there are multiple derivations named `zfs-0.6.1-3.4.54'; using the first one
installing `zfs-0.6.1-3.4.54'
building path(s) `/nix/store/f8jr5yalaarknsy3kvnjjp5dbpxw6c4s-user-environment'
created 305 symlinks in user environment
# nix-env -u \*
upgrading `zfs-0.6.1-3.4.54' to `zfs-0.6.1-3.10.3'
(eventually fails)
I'm guessing the package-version-kernelversion scheme worked better for kernel module packages that don't need to be in the user environment, but zfs includes a userspace utility for managing ZFS filesystems.
Please let me know if I'm doing it wrong, or if there's some workaround I'm missing.
User envs aren't well suited for kernel-dependent packages. (EDIT: or anything system-dependent)
If you have NixOS, then it's better to have it in the system env (you have the kernelPackages attribute accessible there, so you can get compatible packages).
Thanks. I rebuilt my system with boot.supportedFilesystems = [ "ext4" "zfs" ];, which is all I needed to get zfs and zpool in root's PATH. I thought I already did this, but I commented it out while debugging another zfs-in-initrd issue.
I made a bad assumption earlier: I thought root needed zfs in its own environment as well. The source of this bad assumption was some earlier experimentation where I had different versions of systemd in the system env and user env.
Activity
vcunat commentedon Aug 8, 2013
User envs aren't well suited for kernel-dependent packages. (EDIT: or anything system-dependent)
If you have NixOS, then it's better to have it in the system env (you have the kernelPackages attribute accessible there, so you can get compatible packages).
vcunat commentedon Aug 8, 2013
If you prefer user envs, then attribute-based approach is better than name-based one anyway. You can nix-env -iA linuxPackages_3_4.zfs. Upgrades are then best done via expressions with attributes you need, e.g. like in https://nixos.org/wiki/Howto_keep_multiple_packages_up_to_date_at_once
ivan commentedon Aug 8, 2013
Thanks. I rebuilt my system with
boot.supportedFilesystems = [ "ext4" "zfs" ];, which is all I needed to getzfsandzpoolin root'sPATH. I thought I already did this, but I commented it out while debugging another zfs-in-initrd issue.I made a bad assumption earlier: I thought root needed zfs in its own environment as well. The source of this bad assumption was some earlier experimentation where I had different versions of systemd in the system env and user env.
Merge pull request NixOS#154 from tzarsquared/patch-1
v3 ARCH NixOS#152-154: JIT build plan — de-risk the 2nd real lever to…