summary refs log tree commit diff
diff options
context:
space:
mode:
authorArchit Gupta <archit@accelbread.com>2023-06-30 16:24:03 -0700
committerArchit Gupta <archit@accelbread.com>2023-06-30 16:27:11 -0700
commit2efcf8291e11b45c9549c8b45a371e033f1c8eb6 (patch)
tree65e696538fc0fb41427ec696891a2f9f254b4112
parentb763c20eda8f768909ddafd85a6b7976439f4e3b (diff)
downloadnixpkgs-2efcf8291e11b45c9549c8b45a371e033f1c8eb6.tar
nixpkgs-2efcf8291e11b45c9549c8b45a371e033f1c8eb6.tar.gz
nixpkgs-2efcf8291e11b45c9549c8b45a371e033f1c8eb6.tar.bz2
nixpkgs-2efcf8291e11b45c9549c8b45a371e033f1c8eb6.tar.lz
nixpkgs-2efcf8291e11b45c9549c8b45a371e033f1c8eb6.tar.xz
nixpkgs-2efcf8291e11b45c9549c8b45a371e033f1c8eb6.tar.zst
nixpkgs-2efcf8291e11b45c9549c8b45a371e033f1c8eb6.zip
lkl: Let `mount` find `lklfuse` mount helper
This enables mount to find lklfuse when mounting with the type
"fuse.lklfuse". With this fix, lklfuse can be used to mount filesystems
with NixOS filesystem options.

This is the same fix as has been applied to bindfs, mergerfs, and
apfs-fuse.
-rw-r--r--pkgs/applications/virtualization/lkl/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/virtualization/lkl/default.nix b/pkgs/applications/virtualization/lkl/default.nix
index 9f781453839..9bdb21dffd2 100644
--- a/pkgs/applications/virtualization/lkl/default.nix
+++ b/pkgs/applications/virtualization/lkl/default.nix
@@ -56,6 +56,10 @@ stdenv.mkDerivation rec {
        tools/lkl/lib/hijack/liblkl-hijack.so $lib/lib
   '';
 
+  postFixup = ''
+    ln -s $out/bin/lklfuse $out/bin/mount.fuse.lklfuse
+  '';
+
   # We turn off format and fortify because of these errors (fortify implies -O2, which breaks the jitter entropy code):
   #   fs/xfs/xfs_log_recover.c:2575:3: error: format not a string literal and no format arguments [-Werror=format-security]
   #   crypto/jitterentropy.c:54:3: error: #error "The CPU Jitter random number generator must not be compiled with optimizations. See documentation. Use the compiler switch -O0 for compiling jitterentropy.c."