diff options
author | Archit Gupta <archit@accelbread.com> | 2023-06-30 16:24:03 -0700 |
---|---|---|
committer | Archit Gupta <archit@accelbread.com> | 2023-06-30 16:27:11 -0700 |
commit | 2efcf8291e11b45c9549c8b45a371e033f1c8eb6 (patch) | |
tree | 65e696538fc0fb41427ec696891a2f9f254b4112 /pkgs/applications/virtualization/lkl/default.nix | |
parent | b763c20eda8f768909ddafd85a6b7976439f4e3b (diff) |
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.
Diffstat (limited to 'pkgs/applications/virtualization/lkl/default.nix')
-rw-r--r-- | pkgs/applications/virtualization/lkl/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/virtualization/lkl/default.nix b/pkgs/applications/virtualization/lkl/default.nix index 9f7814538392e..9bdb21dffd265 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." |