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
1 changed files with 5 additions and 1 deletions

View File

@ -22,4 +22,8 @@ for (( i=0; i<${#GENTOO_EMERGE_ENV[@]}; i++ )); do
eval export "${GENTOO_EMERGE_ENV[i]}" eval export "${GENTOO_EMERGE_ENV[i]}"
done 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