Skip to content

Use regular OS when using slim container image

Context

What does this MR do and why?

Fetch chrome OS packages for slim distributions.

If using a slim OS, we still want to get the regular OS chrome packages.

Reproduce locally

slim version

bash

OS_VERSION=bullseyeE2_a_bit-longer123-slim
if [[ $OS_VERSION =~ .+-slim ]]; then
    OS_VERSION=${OS_VERSION%%-slim}
fi

$ echo "${OS_VERSION}"
bullseyeE2_a_bit-longer123

non-slim version

bash

OS_VERSION=bullseyeE2_a_bit-longer123-nonslim
if [[ $OS_VERSION =~ .+-slim ]]; then
    OS_VERSION=${OS_VERSION%%-slim}
fi

$ echo "${OS_VERSION}"
bullseyeE2_a_bit-longer123-nonslim

Checklist

Edited by David Dieulivol

Merge request reports