Skip to contentSkip to conversation

undocumented SYSTEMD_SERVICE_ESCAPED, SYSTEMD_DEFAULT_TARGET variables

docs Robert P. J. Day 2 participants 2 messages Dec 12, 2021 – Dec 13, 2021 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 8 lines · Robert P. J. Day

just noticed that the two variables above are not in the current
variables glossary.

the latter is used occasionally so should be documented, but the
former does not seem to occur *anywhere* other than in systemd.bbclass; is it actually a viable variable? i don't see s single example of its usage in the numerous layers i have checked out.

oh, wait, it looks like SYSTEMD_SERVICE_ESCAPED is a purely internal
variable in systemd.bbclass. it's just confusing if you're reading source and you come across a fully-capitalized variable that leads you to believe it's user-manipulable.

rday

#2 lore raw

Hi Robert,

Quoted 5 lines · Robert P. J. Day
Quoted 3 lines · Robert P. J. Day

just noticed that the two variables above are not in the current
variables glossary.

Quoted 8 lines
Quoted 4 lines

the latter is used occasionally so should be documented, but the
former does not seem to occur *anywhere* other than in systemd.bbclass; is it actually a viable variable? i don't see s single example of its usage in the numerous layers i have checked out.

oh, wait, it looks like SYSTEMD_SERVICE_ESCAPED is a purely internal
variable in systemd.bbclass. it's just confusing if you're reading source and you come across a fully-capitalized variable that leads you to believe it's user-manipulable.

Thanks for reporting this.

SYSTEMD_SERVICE_ESCAPED seems to be a regular variable handled by BitBake though. It makes sense to capitalize it as the other ones.

I opened a bug for SYSTEMD_DEFAULT_TARGET:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=14660

Thanks again
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com