Compabitility fix for Docker >= 1.11 (docker/docker#19490)

This commit is contained in:
Manfred Touron 2016-05-14 21:38:42 +02:00
parent e4ba640a28
commit c92dcd2b32
No known key found for this signature in database
GPG Key ID: 9CCF47DF1FD978A1

View File

@ -86,7 +86,7 @@ systemvmpath=$3
command -v mkisofs > /dev/null || (echo "$(basename $0): mkisofs not found, please install or ensure PATH is accurate" ; exit 4)
# if running into Docker as unprivileges, skip ssh verification as iso cannot be mounted due to missing loop device.
if [ -f /.dockerinit ]; then
if [ -f /.dockerenv ]; then
if [ -e /dev/loop0 ]; then
# it's a docker instance with privileges.
inject_into_iso systemvm.iso $newpubkey