Unverified Commit 05fef775 authored by Philip Taron's avatar Philip Taron Committed by GitHub
Browse files

buildFHSEnvBubblewrap: extraPreBwrapCmds after variable initialisation (#344404)

parents e385a853 9bc6d231
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -126,12 +126,13 @@ let

  indentLines = str: concatLines (map (s: "  " + s) (filter (s: s != "") (splitString "\n" str)));
  bwrapCmd = { initArgs ? "" }: ''
    ${extraPreBwrapCmds}
    ignored=(/nix /dev /proc /etc ${optionalString privateTmp "/tmp"})
    ro_mounts=()
    symlinks=()
    etc_ignored=()

    ${extraPreBwrapCmds}

    # loop through all entries of root in the fhs environment, except its /etc.
    for i in ${fhsenv}/*; do
      path="/''${i##*/}"