buildFHSUserEnvBubblewrap: fix whitespace with root directories
This commit is contained in:
parent
7b3b82f7af
commit
ec38df81a9
@ -77,13 +77,13 @@ let
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
auto_mounts=""
|
declare -a auto_mounts
|
||||||
# loop through all directories in the root
|
# loop through all directories in the root
|
||||||
for dir in /*; do
|
for dir in /*; do
|
||||||
# if it is a directory and it is not in the blacklist
|
# if it is a directory and it is not in the blacklist
|
||||||
if [[ -d "$dir" ]] && grep -v "$dir" <<< "$blacklist" >/dev/null; then
|
if [[ -d "$dir" ]] && grep -v "$dir" <<< "$blacklist" >/dev/null; then
|
||||||
# add it to the mount list
|
# add it to the mount list
|
||||||
auto_mounts="$auto_mounts --bind $dir $dir"
|
auto_mounts+=(--bind "$dir" "$dir")
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ let
|
|||||||
--ro-bind /nix /nix \
|
--ro-bind /nix /nix \
|
||||||
${etcBindFlags} \
|
${etcBindFlags} \
|
||||||
$ro_mounts \
|
$ro_mounts \
|
||||||
$auto_mounts \
|
"''${auto_mounts[@]}" \
|
||||||
${init runScript}/bin/${name}-init ${initArgs}
|
${init runScript}/bin/${name}-init ${initArgs}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user