nixpkgs/pkgs
aszlig caccc40ad0
vmTools: Fix BusyBox runtime error in initrd
With the recent update of BusyBox to version 1.29.0 in
d6aa506e3b there is now a new dependency
on libresolv.

This now throws a runtime error when executing ash, eg. whenever we do
something like this:

nix-build -E 'with import ./. {}; vmTools.runInLinuxVM hello'

The resulting error will be:

  .../ash: error while loading shared libraries: libresolv.so.2: cannot
           open shared object file: No such file or directory

I tried to override BusyBox with enableStatic, but that still requires
parts of glibc:

  Static linking against glibc, can't use --gc-sections
  Trying libraries: crypt m resolv
   Library crypt is not needed, excluding it
   Library m is needed, can't exclude it (yet)
   Library resolv is needed, can't exclude it (yet)
   Library m is needed, can't exclude it (yet)
   Library resolv is needed, can't exclude it (yet)
  Final link with: m resolv

In the long term maybe switching to a more minimal C library such as
musl would make more sense, but for now I just added libresolv.so to the
initrd which fixes the runtime error.

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @edolstra, @rbvermaa
Signed-off-by: aszlig <aszlig@nix.build>
2018-07-18 03:02:55 +02:00
..
applications scantailor-advanced: 1.0.15 -> 1.0.16 (#43653) 2018-07-18 02:04:02 +02:00
build-support vmTools: Fix BusyBox runtime error in initrd 2018-07-18 03:02:55 +02:00
common-updater
data all-cabal-hashes: update to Hackage at 2018-07-15T21:54:52Z 2018-07-16 10:11:14 +02:00
desktops xfce.gtk-xfce-engine: fix build when withGtk3=true (#43621) 2018-07-18 01:14:54 +02:00
development pythonPackages.simpy: init at 3.0.11. 2018-07-17 17:37:50 -04:00
games Merge pull request #43578 from rardiol/cdda 2018-07-15 21:10:05 +00:00
misc config.skipAliases -> config.allowAliases 2018-07-17 14:46:21 +00:00
os-specific linux: 4.17.6 -> 4.17.7 2018-07-17 09:19:51 -04:00
servers home-assistant: 0.73.1 -> 0.73.2 2018-07-17 14:36:47 +02:00
shells zsh-command-time: 2017-05-09 -> 2018-04-30 2018-07-12 09:45:54 +03:00
stdenv make-derivation: Don't add host-suffix to fixed-output derivations names 2018-07-09 11:07:10 -04:00
test Merge remote-tracking branch 'upstream/master' into staging 2018-06-18 15:30:39 -04:00
tools esptool: 2.4.1 -> 2.5.0 (#43663) 2018-07-18 01:16:57 +02:00
top-level Merge pull request #43609 from ttuegel/emacs-packages-2018-07-14 2018-07-17 17:53:54 -05:00