diff options
author | Tuomas Tynkkynen <tuomas@tuxera.com> | 2017-02-12 02:56:29 +0200 |
---|---|---|
committer | Tuomas Tynkkynen <tuomas@tuxera.com> | 2017-02-12 15:47:49 +0200 |
commit | 9e04b57dde58c4db462bba8057e49eb071f5e5c0 (patch) | |
tree | 9b10cdc33f8763e8b8150c5bff3aa280b70e326c /nixos/modules/system/activation | |
parent | 4f34e030a59a9ef89cec459c223c54cf1e6bc199 (diff) | |
download | nixlib-9e04b57dde58c4db462bba8057e49eb071f5e5c0.tar nixlib-9e04b57dde58c4db462bba8057e49eb071f5e5c0.tar.gz nixlib-9e04b57dde58c4db462bba8057e49eb071f5e5c0.tar.bz2 nixlib-9e04b57dde58c4db462bba8057e49eb071f5e5c0.tar.lz nixlib-9e04b57dde58c4db462bba8057e49eb071f5e5c0.tar.xz nixlib-9e04b57dde58c4db462bba8057e49eb071f5e5c0.tar.zst nixlib-9e04b57dde58c4db462bba8057e49eb071f5e5c0.zip |
nixos top-level: Add 'dtbs' symlink when kernel uses device trees
Currently e.g. extlinux-conf-builder.sh uses `readlink -m "$toplevel/kernel/../dtbs"` to figure out the directory. That is obscenely ugly.
Diffstat (limited to 'nixos/modules/system/activation')
-rw-r--r-- | nixos/modules/system/activation/top-level.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/system/activation/top-level.nix b/nixos/modules/system/activation/top-level.nix index 0c08375da646..84c23bed3e3b 100644 --- a/nixos/modules/system/activation/top-level.nix +++ b/nixos/modules/system/activation/top-level.nix @@ -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 |