summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/volatile-binds
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2022-03-25 18:40:31 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-26 09:33:28 +0000
commit56c7962a6c31acfe0e118f713954aeafd7e2d9c0 (patch)
tree1f3c9a63c4788e426b2b58e5d49ffd44c60e9687 /meta/recipes-core/volatile-binds
parente478381ac1cccc5f882198fd11c8757db7e3741a (diff)
downloadopenembedded-core-56c7962a6c31acfe0e118f713954aeafd7e2d9c0.tar.gz
mount-copybind: fix shellcheck warning
$ shellcheck meta/recipes-core/volatile-binds/files/mount-copybind In meta/recipes-core/volatile-binds/files/mount-copybind line 54: mountcontext=",rootcontext=$(matchpathcon -n $mountpoint)" ^---------^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: mountcontext=",rootcontext=$(matchpathcon -n "$mountpoint")" For more information: https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ... Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'meta/recipes-core/volatile-binds')
-rwxr-xr-xmeta/recipes-core/volatile-binds/files/mount-copybind2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/volatile-binds/files/mount-copybind b/meta/recipes-core/volatile-binds/files/mount-copybind
index aad022c6e4..8bbb406b3a 100755
--- a/meta/recipes-core/volatile-binds/files/mount-copybind
+++ b/meta/recipes-core/volatile-binds/files/mount-copybind
@@ -48,7 +48,7 @@ if [ -d "$mountpoint" ]; then
# If that fails, fall back to slower copy.
if command -v selinuxenabled > /dev/null 2>&1; then
if selinuxenabled; then
- mountcontext=",rootcontext=$(matchpathcon -n $mountpoint)"
+ mountcontext=",rootcontext=$(matchpathcon -n "$mountpoint")"
fi
fi
if ! mount -t overlay overlay -olowerdir="$mountpoint",upperdir="$spec",workdir="$overlay_workdir""$mountcontext" "$mountpoint" > /dev/null 2>&1; then