This repository was archived by the owner on Aug 27, 2018. It is now read-only.
This repository was archived by the owner on Aug 27, 2018. It is now read-only.
Cannot put zfs in initrd: output is not allowed to refer to path ...-gcc-4.6.3 #208
Open
Description
If I add "zfs"
to boot.initrd.supportedFilesystems
and run nixos-rebuild switch
, I get a build failure ending in:
patching /nix/store/c3ayb2s6imrd2vn3xrmj4x58qzhb9l8r-extra-utils/bin/udevadm...
patching /nix/store/c3ayb2s6imrd2vn3xrmj4x58qzhb9l8r-extra-utils/bin/v4l_id...
testing patched programs...
hello world
BusyBox v1.20.2 (2013-05-23 19:40:56 UTC) multi-call binary.
203
Library version: 1.02.77 (2012-10-15)
LVM version: 2.02.98(2) (2012-10-15)
mdadm - v3.1.2 - 10th March 2010
output is not allowed to refer to path `/nix/store/r7jz82h8d9fpqvyphcxr1hrqfnsp7q8v-gcc-4.6.3'
cannot build derivation `/nix/store/6b5ssw5wphqn93y2qh9lsmaycv57gy22-stage-1-init.sh.drv': 1 dependencies couldn't be built
cannot build derivation `/nix/store/pl507q3giymxsiyab4wkz74f0xkifdqd-initrd.drv': 1 dependencies couldn't be built
cannot build derivation `/nix/store/5c72l7brcdishlw8pw0znc7sx1q3055k-nixos-13.07pre4899_96be2d5-5405636.drv': 1 dependencies couldn't be built
error: build of `/nix/store/5c72l7brcdishlw8pw0znc7sx1q3055k-nixos-13.07pre4899_96be2d5-5405636.drv' failed
I am using the nixos-unstable channel, last updated today, 2013-07-29.
My /etc/nixos/configuration.nix
:
{ config, pkgs, ... }:
{
require =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
boot.initrd.kernelModules =
[ # Specify all kernel modules that are necessary for mounting the root
# filesystem.
# "xfs" "ata_piix"
];
boot.initrd.supportedFilesystems = [ "zfs" ];
# Use the GRUB 2 boot loader.
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
# Define on which hard drive you want to install Grub.
boot.loader.grub.device = "/dev/sda";
networking.hostName = "nixos-vanilla"; # Define your hostname.
# networking.wireless.enable = true; # Enables Wireless.
# Add filesystem entries for each partition that you want to see
# mounted at boot time. This should include at least the root
# filesystem.
fileSystems."/".device = "/dev/disk/by-label/nixos-root";
fileSystems."/boot".device = "/dev/disk/by-label/nixos-boot";
# List swap partitions activated at boot time.
swapDevices =
[ # { device = "/dev/disk/by-label/swap"; }
];
# Enable the OpenSSH daemon.
services.openssh.enable = true;
services.openssh.permitRootLogin = "yes";
services.xserver.enable = false;
}
I've pasted a full log of the rebuild to https://ludios.org/tmp/nixos-rebuild-zfs-in-initrd.txt because github is limited to 64KB of issue body text, and won't let me attach a text file.
Metadata
Metadata
Assignees
Labels
No labels