diff options
author | Chad Smith <chad.smith@canonical.com> | 2021-07-12 16:37:34 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-12 16:37:34 -0600 |
commit | a185f31911dfc58662eb1eb5d39a9ab3ed178ff5 (patch) | |
tree | 0d2acbc57a6778dece35b90ee70129cf579be310 /tools/run-container | |
parent | 9b52405c6f0de5e00d5ee9c1d13540425d8f6bf5 (diff) | |
download | vyos-cloud-init-a185f31911dfc58662eb1eb5d39a9ab3ed178ff5.tar.gz vyos-cloud-init-a185f31911dfc58662eb1eb5d39a9ab3ed178ff5.zip |
tools: add support for building rpms on rocky linux (#940)
Diffstat (limited to 'tools/run-container')
-rwxr-xr-x | tools/run-container | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/run-container b/tools/run-container index 15948e77..1bd10971 100755 --- a/tools/run-container +++ b/tools/run-container @@ -191,7 +191,7 @@ os_info() { get_os_info() { # run inside container, set OS_NAME, OS_VERSION - # example OS_NAME are centos, debian, opensuse + # example OS_NAME are centos, debian, opensuse, rockylinux [ -n "${OS_NAME:-}" -a -n "${OS_VERSION:-}" ] && return 0 if [ -f /etc/os-release ]; then OS_NAME=$(sh -c '. /etc/os-release; echo $ID') @@ -247,7 +247,7 @@ apt_install() { install_packages() { get_os_info || return case "$OS_NAME" in - centos) yum_install "$@";; + centos|rocky*) yum_install "$@";; opensuse) zypper_install "$@";; debian|ubuntu) apt_install "$@";; *) error "Do not know how to install packages on ${OS_NAME}"; @@ -485,7 +485,7 @@ main() { local build_pkg="" build_srcpkg="" pkg_ext="" distflag="" case "$OS_NAME" in - centos) distflag="--distro=redhat";; + centos|rocky) distflag="--distro=redhat";; opensuse) distflag="--distro=suse";; esac @@ -494,7 +494,7 @@ main() { build_pkg="./packages/bddeb -d" build_srcpkg="./packages/bddeb -S -d" pkg_ext=".deb";; - centos|opensuse) + centos|opensuse|rocky) build_pkg="./packages/brpm $distflag" build_srcpkg="./packages/brpm $distflag --srpm" pkg_ext=".rpm";; |