Dependencies already copied

During installing NixOS, I get multiple messages saying that certain dependencies are already copied. Are these messages warnings or are they only informational? What causes them?

I would expect that if a dependency is already in the store, Nix wouldn’t attempt to copy it another time, but informing me that a dependency is already copied seems like Nix did attempt to copy it another time and then realized it was already there, which doesn’t seem like normal behavior to me.

Sounds like you tried to install nixos twice without clearing the nix store. The install script only bootstraps the nix store and hence does not expect there to be already things. If it works in the end it shouldn’t matter.

1 Like

Also with a fresh installation I’m getting such messages. Here’s an excerpt of the output of nixos-install that contains examples:

root module: sd_mod
  copying dependency: /nix/store/kzd7kkackv9k56si67qy9gzcaxjanfar-linux-5.15.103-modules/lib/modules/5.15.103/kernel/crypto/crct10dif_common.ko.xz
  dependency already copied: /nix/store/kzd7kkackv9k56si67qy9gzcaxjanfar-linux-5.15.103-modules/lib/modules/5.15.103/kernel/crypto/crct10dif_common.ko.xz
  copying dependency: /nix/store/kzd7kkackv9k56si67qy9gzcaxjanfar-linux-5.15.103-modules/lib/modules/5.15.103/kernel/arch/x86/crypto/crct10dif-pclmul.ko.xz
  dependency already copied: /nix/store/kzd7kkackv9k56si67qy9gzcaxjanfar-linux-5.15.103-modules/lib/modules/5.15.103/kernel/crypto/crct10dif_common.ko.xz
  copying dependency: /nix/store/kzd7kkackv9k56si67qy9gzcaxjanfar-linux-5.15.103-modules/lib/modules/5.15.103/kernel/crypto/crct10dif_generic.ko.xz
  copying dependency: /nix/store/kzd7kkackv9k56si67qy9gzcaxjanfar-linux-5.15.103-modules/lib/modules/5.15.103/kernel/lib/crc-t10dif.ko.xz
  dependency already copied: /nix/store/kzd7kkackv9k56si67qy9gzcaxjanfar-linux-5.15.103-modules/lib/modules/5.15.103/kernel/drivers/scsi/scsi_common.ko.xz
  dependency already copied: /nix/store/kzd7kkackv9k56si67qy9gzcaxjanfar-linux-5.15.103-modules/lib/modules/5.15.103/kernel/drivers/scsi/scsi_mod.ko.xz
  copying dependency: /nix/store/kzd7kkackv9k56si67qy9gzcaxjanfar-linux-5.15.103-modules/lib/modules/5.15.103/kernel/block/t10-pi.ko.xz
  copying dependency: /nix/store/kzd7kkackv9k56si67qy9gzcaxjanfar-linux-5.15.103-modules/lib/modules/5.15.103/kernel/drivers/scsi/sd_mod.ko.xz

That’s about kernel objects, not nix store entires like I first thought. Those are mostly a bit verboser build logs when nixos collects the required ko files and means that it earlier found that one already. Nothing to worry about.