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:
commit
c485f1be24
@ -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
|
||||
|
@ -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\"
|
||||
]"
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user