1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-11 04:58:16 +03:00

M #: Minor improvement DH monitor & downloader

This commit is contained in:
Ruben S. Montero 2020-05-21 14:55:10 +02:00 committed by GitHub
commit c485f1be24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 10 deletions

View File

@ -148,16 +148,9 @@ mkdir -p $dockerdir
mkdir -p $dockerdir/mnt
# Check distro
distro=`docker run --rm \
-e "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" \
$docker_hub cat /etc/os-release | grep "ID_LIKE=" | cut -d= -f 2 || true`
if [ -z $distro ]; then
distro=`docker run --rm \
-e "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" \
$docker_hub cat /etc/os-release | grep "^ID=.*\n" | cut -d= -f 2 || true`
fi
$docker_hub cat /etc/os-release | grep "^ID=.*\n" | cut -d= -f 2 | xargs`
if [ -z $distro ]; then
echo "Cannot identified $docker_hub distribution" 1>&2
@ -197,7 +190,7 @@ RUN systemctl enable haveged
EOC
)
;;
centos|redhat)
centos)
terminal="/bin/bash"
contextpkg=$dockerdir/context.rpm
contexturl=$CONTEXT_URL/v$selected_tag/one-context-$selected_tag-1.el7.noarch.rpm

View File

@ -55,7 +55,7 @@ CONTEXT = [
SET_HOSTNAME =\"$NAME\"
]
OS = [
KERNEL_CMD=\"console=ttyS0 reboot=k panic=1 pci=off\"
KERNEL_CMD=\"console=ttyS0 reboot=k panic=1\"
]"
#---------------------------------------------------------------------------