diff options
author | Luca Boccassi <bluca@debian.org> | 2022-03-25 18:40:31 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-26 09:33:32 +0000 |
commit | 23ef8946410d539d85fcbdaf818ce01e4a658716 (patch) | |
tree | 303630948ce5695a6d62a7fff64ea9635d476764 /meta/recipes-core | |
parent | 596fcd883f7340a06d083597abf5d1873c695b7c (diff) | |
download | poky-23ef8946410d539d85fcbdaf818ce01e4a658716.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 ...
(From OE-Core rev: 56c7962a6c31acfe0e118f713954aeafd7e2d9c0)
Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rwxr-xr-x | meta/recipes-core/volatile-binds/files/mount-copybind | 2 |
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 | |||
48 | # If that fails, fall back to slower copy. | 48 | # If that fails, fall back to slower copy. |
49 | if command -v selinuxenabled > /dev/null 2>&1; then | 49 | if command -v selinuxenabled > /dev/null 2>&1; then |
50 | if selinuxenabled; then | 50 | if selinuxenabled; then |
51 | mountcontext=",rootcontext=$(matchpathcon -n $mountpoint)" | 51 | mountcontext=",rootcontext=$(matchpathcon -n "$mountpoint")" |
52 | fi | 52 | fi |
53 | fi | 53 | fi |
54 | if ! mount -t overlay overlay -olowerdir="$mountpoint",upperdir="$spec",workdir="$overlay_workdir""$mountcontext" "$mountpoint" > /dev/null 2>&1; then | 54 | if ! mount -t overlay overlay -olowerdir="$mountpoint",upperdir="$spec",workdir="$overlay_workdir""$mountcontext" "$mountpoint" > /dev/null 2>&1; then |