Skip to content

Commit

Permalink
F #4007: LXD Centos8 auto-context
Browse files Browse the repository at this point in the history
  • Loading branch information
dann1 committed Dec 10, 2019
1 parent 45f6d6d commit e5dcdda
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/datastore_mad/remotes/lxd_downloader.sh
Expand Up @@ -215,6 +215,24 @@ $CURL $CONTEXT_URL/v$selected_tag/one-context-$selected_tag-1.el7.noarch.rpm -Ls
yum install /root/context.rpm -y >> /var/log/chroot.log 2>&1
rm /root/context.rpm
rm /dev/random /dev/urandom
EOC
)
;;
*centos/8*)
terminal="/bin/bash"
commands=$(cat <<EOC
echo "nameserver $DNS_SERVER" > /etc/resolv.conf
[ ! -e /dev/random ] && mknod -m 666 /dev/random c 1 8 >> /var/log/chroot.log 2>&1
[ ! -e /dev/urandom ] && mknod -m 666 /dev/urandom c 1 9 >> /var/log/chroot.log 2>&1
yum install $PKG_RPM -y >> /var/log/chroot.log 2>&1
$CURL $CONTEXT_URL/v$selected_tag/one-context-$selected_tag-1.el8.noarch.rpm -Lsfo /root/context.rpm >> /var/log/chroot.log 2>&1
yum install /root/context.rpm -y >> /var/log/chroot.log 2>&1
rm /root/context.rpm
rm /dev/random /dev/urandom
EOC
)
Expand Down

0 comments on commit e5dcdda

Please sign in to comment.