summaryrefslogtreecommitdiffstats
path: root/arch-nspawn.in
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-08-10 03:33:58 +0200
committerPierre Schmitz <pierre@archlinux.de>2013-08-18 18:16:59 +0200
commite0f7c21a68ddd244f99710ab19ac6e70cc32fa20 (patch)
tree5696bd4f0014137290aa7c3ec029142ef3f63661 /arch-nspawn.in
parent8dbb02de4f50aeb05c5df2ef8d9c8cf394b4f9ac (diff)
downloaddevtools-e0f7c21a68ddd244f99710ab19ac6e70cc32fa20.tar.gz
devtools-e0f7c21a68ddd244f99710ab19ac6e70cc32fa20.tar.xz
arch-nspawn: avoid escaping mount_args
eval is no longer involved in the execution of systemd-nspawn, so we no longer need a layer of escaping on the arguments. Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
Diffstat (limited to 'arch-nspawn.in')
-rw-r--r--arch-nspawn.in10
1 files changed, 3 insertions, 7 deletions
diff --git a/arch-nspawn.in b/arch-nspawn.in
index a05ca1c..6c6f1e3 100644
--- a/arch-nspawn.in
+++ b/arch-nspawn.in
@@ -56,20 +56,16 @@ host_mirror=$(pacman -Sddp extra/devtools 2>/dev/null | sed -r 's#(.*/)extra/os/
# {{{ functions
build_mount_args() {
- local p
declare -g mount_args=()
if [[ -n $host_mirror_path ]]; then
- printf -v p '%q' "$host_mirror_path"
- mount_args+=(--bind-ro="$p")
+ mount_args+=(--bind-ro="$host_mirror_path")
fi
- printf -v p '%q' "${cache_dirs[0]}"
- mount_args+=(--bind="$p")
+ mount_args+=(--bind="${cache_dirs[0]}")
for cache_dir in ${cache_dirs[@]:1}; do
- printf -v p '%q' "$cache_dir"
- mount_args+=(--bind-ro="$p")
+ mount_args+=(--bind-ro="$cache_dir")
done
}