The Ubuntu rootfs comes without the "compass" user and group. That user is expected to exist in cyanogenmod. The compass/accelerometer/proximity sensor in my port fail to work because the user is missing (unless applying patches to use the system user for the akmd service and device nodes). See [1], there are a few device nodes belonging to the compass user and there are even more in some device-specific ueventd.rc files.
The Ubuntu rootfs comes without the "compass" user and group. That user is expected to exist in cyanogenmod. The compass/ accelerometer/ proximity sensor in my port fail to work because the user is missing (unless applying patches to use the system user for the akmd service and device nodes). See [1], there are a few device nodes belonging to the compass user and there are even more in some device-specific ueventd.rc files.
[1] http:// phablet. ubuntu. com/gitweb? p=CyanogenMod/ android_ system_ core.git; a=blob; f=rootdir/ ueventd. rc;h=ecaa1abdb4 f0b99e21ea2c2b9 38eaa52e278f070 ;hb=refs/ heads/phablet- saucy
The inofficial cyanogen port for my device has a "compass" group as well, I guess it's the same in cyanogenmod, so I hope you can add that group too.
The file /customization/ hooks/02- add_user_ to_groups. chroot looks like it is the right place to add that user.