allow building non-gentoo images on gentoo hosts
Can't use a variable that's not set. Change-Id: I4a7cf2ac47c2254da2fec778437f67c1fe3707f7
This commit is contained in:
parent
0769bfd4aa
commit
2dd6dd357a
@ -14,8 +14,10 @@ if [ -f /usr/bin/systemctl -o -f /bin/systemctl ]; then
|
|||||||
elif [[ -f /sbin/initctl ]]; then
|
elif [[ -f /sbin/initctl ]]; then
|
||||||
echo "upstart"
|
echo "upstart"
|
||||||
elif [[ -f /etc/gentoo-release ]]; then
|
elif [[ -f /etc/gentoo-release ]]; then
|
||||||
if [[ "${GENTOO_PROFILE}" =~ systemd ]]; then
|
if [[ -z GENTOO_PROFILE ]]; then
|
||||||
echo "systemd"
|
if [[ "${GENTOO_PROFILE}" =~ systemd ]]; then
|
||||||
|
echo "systemd"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo "openrc"
|
echo "openrc"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user