Skip to content

Commit

Permalink
nixos top-level: Add 'dtbs' symlink when kernel uses device trees
Browse files Browse the repository at this point in the history
Currently e.g. extlinux-conf-builder.sh uses
`readlink -m "$toplevel/kernel/../dtbs"` to figure out the directory.
That is obscenely ugly.
  • Loading branch information
dezgeg committed Feb 12, 2017
1 parent 4f34e03 commit 9e04b57
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nixos/modules/system/activation/top-level.nix
Expand Up @@ -45,6 +45,9 @@ let
ln -s ${kernelPath} $out/kernel
ln -s ${config.system.modulesTree} $out/kernel-modules
${optionalString (pkgs.stdenv.platform.kernelDTB or false) ''
ln -s ${config.boot.kernelPackages.kernel}/dtbs $out/dtbs
''}
echo -n "$kernelParams" > $out/kernel-params
Expand Down

0 comments on commit 9e04b57

Please sign in to comment.