Browse Source

allow building of Gentoo images for non-systemd profiles

Change-Id: I61e3ba391eaaf9b300f88b082c03116388401ba3
tags/2.33.0
Matthew Thode 2 months ago
parent
commit
87e7f7b869
No known key found for this signature in database GPG Key ID: 64A37BEAAE19A4E8
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      diskimage_builder/elements/gentoo/environment.d/00-gentoo-envars.bash

+ 5
- 1
diskimage_builder/elements/gentoo/environment.d/00-gentoo-envars.bash 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

Loading…
Cancel
Save