anchor.diff:        $out/bin/mdadm --version
   
         ${config.boot.initrd.extraUtilsCommandsTest}
  +      fi
       ''; # */
   
   
  
positive.code:   # we just copy what we need from Glibc and use patchelf to make it
    # work.
    extraUtils = pkgs.runCommandCC "extra-utils"
      { buildInputs = [pkgs.nukeReferences];
        allowedReferences = [ "out" ]; # prevent accidents like glibc being included in the initrd
      }
      ''
  
negative.code:         fi
        done
  
        if [ -z "${toString pkgs.stdenv.isCross}" ]; then
        # Make sure that the patchelf'ed binaries still work.
        echo "testing patched programs..."
        $out/bin/ash -c 'echo hello world' | grep "hello world"
  