elements/dib-init-system: fail to detect init system in some gentoo guest configurations
Bug #1822574 reported by
Raimonds Cicans
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
diskimage-builder |
New
|
Undecided
|
Unassigned |
Bug Description
diskimage-builder: 2.20.3
Host OS: Gentoo (amd64)
Guest OS: Gentoo (amd64)
Problem: guest building fails early if variable GENTOO_PROFILE is set and it does _NOT_ contain word "systemd"
Cause: bug in elements/
Description:
elements/
if [[ "${GENTOO_PROFILE}" =~ systemd ]]; then
echo "systemd"
fi
Fix: add "else" statement:
if [[ "${GENTOO_PROFILE}" =~ systemd ]]; then
echo "systemd"
else
echo "openrc"
fi
Hmmm... IMHO it would be nice to have some environment variable to override auto-detection...
To post a comment you must log in.
Sorry, I'm wrong.
Hmmm... It looks there are several bugs mixed.
Guest VM build fails early if "--no-tmpfs" CLI parameter used or GENTOO_PROFILE contains "hardened" (which automatically turns on "--no-tmpfs").