Skip to content

Commit

Permalink
Merge pull request #303135 from Mic92/envfs-backport
Browse files Browse the repository at this point in the history
[Backport release-23.11] envfs: 1.0.3 -> 1.0.6
  • Loading branch information
Lassulus authored Apr 10, 2024
2 parents 4f9bd41 + 9cc03c5 commit 7d63c1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions nixos/modules/tasks/filesystems/envfs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ let
device = "none";
fsType = "envfs";
options = [
"bind-mount=/bin"
"fallback-path=${pkgs.runCommand "fallback-path" {} (''
mkdir -p $out
ln -s ${config.environment.usrbinenv} $out/env
Expand All @@ -15,6 +16,9 @@ let
"nofail"
];
};
# We need to bind-mount /bin to /usr/bin, because otherwise upgrading
# from envfs < 1.0.5 will cause having the old envs with no /bin bind mount.
# Systemd is smart enough to not mount /bin if it's already mounted.
"/bin" = {
device = "/usr/bin";
fsType = "none";
Expand Down
6 changes: 3 additions & 3 deletions pkgs/tools/filesystems/envfs/default.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{ rustPlatform, lib, fetchFromGitHub, nixosTests }:
rustPlatform.buildRustPackage rec {
pname = "envfs";
version = "1.0.3";
version = "1.0.6";
src = fetchFromGitHub {
owner = "Mic92";
repo = "envfs";
rev = version;
hash = "sha256-WbMqh/MzEMfZmKl/DNBGnzG3l8unFmAYbG6feSiMz+Y=";
hash = "sha256-kOfnKguvJQHW/AfQOetxVefjoEj7ec5ew6fumhOwP08=";
};
cargoHash = "sha256-RoreNBZvTsVY87nbVibJBy4gsafFwAMctVncAhhiaP8=";
cargoHash = "sha256-isx4jBsA3HX6124R3qtwTqH5fLTAP7xdQD5bTzCAybo=";

passthru.tests = {
envfs = nixosTests.envfs;
Expand Down

0 comments on commit 7d63c1c

Please sign in to comment.