allow building of Gentoo images for non-systemd profiles
Change-Id: I61e3ba391eaaf9b300f88b082c03116388401ba3
This commit is contained in:
parent
6f1b51627f
commit
87e7f7b869
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue