allow building of Gentoo images for non-systemd profiles

Change-Id: I61e3ba391eaaf9b300f88b082c03116388401ba3
This commit is contained in:
Matthew Thode 2019-12-20 17:51:55 -06:00
parent 6f1b51627f
commit 87e7f7b869
No known key found for this signature in database
GPG key ID: 64A37BEAAE19A4E8

View file

@ -22,4 +22,8 @@ for (( i=0; i<${#GENTOO_EMERGE_ENV[@]}; i++ )); do
eval export "${GENTOO_EMERGE_ENV[i]}"
done
export DIB_INIT_SYSTEM=systemd
if [[ "${GENTOO_PROFILE}" == *"systemd"* ]]; then
export DIB_INIT_SYSTEM=${DIB_INIT_SYSTEM:-'systemd'}
else
export DIB_INIT_SYSTEM=${DIB_INIT_SYSTEM:-'openrc'}
fi