vuls: init at 0.27.0
[NixPkgs.git] / nixos / tests / nix-required-mounts / ensure-path-not-present.nix
blob270c268fcbd9e96ca609d92c48c68406329feb7c
2   pkgs ? import <nixpkgs> { },
3   feature,
4 }:
6 pkgs.runCommandNoCC "${feature}-not-present" { } ''
7   if [[ -e /${feature}-files ]]; then
8     echo "No ${feature} in requiredSystemFeatures, but /${feature}-files was mounted anyway"
9     exit 1
10   else
11     touch $out
12   fi