Merge "allow building non-gentoo images on gentoo hosts"

This commit is contained in:
Zuul 2018-10-03 11:08:11 +00:00 committed by Gerrit Code Review
commit 3e6d658687

View File

@ -14,8 +14,10 @@ if [ -f /usr/bin/systemctl -o -f /bin/systemctl ]; then
elif [[ -f /sbin/initctl ]]; then
echo "upstart"
elif [[ -f /etc/gentoo-release ]]; then
if [[ "${GENTOO_PROFILE}" =~ systemd ]]; then
echo "systemd"
if [[ -z GENTOO_PROFILE ]]; then
if [[ "${GENTOO_PROFILE}" =~ systemd ]]; then
echo "systemd"
fi
else
echo "openrc"
fi