mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-17 23:47:07 +00:00
Merge pull request #287 from marcov/no-create-1
rootfs: use command vs which, avoid "1" file creation
This commit is contained in:
commit
4a2fa6875d
@ -337,7 +337,7 @@ if [ -n "${USE_DOCKER}" ] ; then
|
|||||||
docker_run_args+=" $(docker_extra_args $distro)"
|
docker_run_args+=" $(docker_extra_args $distro)"
|
||||||
|
|
||||||
# Relabel volumes so SELinux allows access (see docker-run(1))
|
# Relabel volumes so SELinux allows access (see docker-run(1))
|
||||||
if which selinuxenabled 2&>1 >/dev/null && selinuxenabled ; then
|
if command -v selinuxenabled > /dev/null && selinuxenabled ; then
|
||||||
for volume_dir in "${script_dir}" \
|
for volume_dir in "${script_dir}" \
|
||||||
"${ROOTFS_DIR}" \
|
"${ROOTFS_DIR}" \
|
||||||
"${script_dir}/../scripts" \
|
"${script_dir}/../scripts" \
|
||||||
|
Loading…
Reference in New Issue
Block a user