Skip to content

config: correctly transform legacy FORM_FACTOR and DeviceInfo values

ubuntu-touch-session.d files define FORM_FACTOR in terms of Hostnamed's Chassis value [1]. We, however, have our own set of values. So we have to convert between these values.

Use "transformer" function concept to make it more generic.

[1] https://www.freedesktop.org/software/systemd/man/org.freedesktop.hostname1.html#Semantics

Fixes: #9 (closed)

Merge request reports