I’m trying to add a custom systemd service and create a new image with torizoncore-builder. My first attempt was to enable the service to test it, and I assumed I could create an image with the service enabled. This failed with the “union” command error below. I think it’s complaining that the service file is not in /usr/etc/systemd/system/multi-user.target.wants (it is in /etc/systemd/system/multi-user.target.wants).
Of course /usr/etc is RO so I can’t just put the file there.
I expect this will work if I try create the image with the service disabled, about to give that a try now…
Here is the error message:
torizoncore-builder union --union-branch=upstream-torizon-5_1-custom
setfacl: systemd/system/multi-user.target.wants/custom.service: No such file or directory
An unexpected Exception occured. Please provide the following stack trace to
the Toradex TorizonCore support team:
Traceback (most recent call last):
File “/builder/torizoncore-builder”, line 175, in
File “/builder/tcbuilder/cli/union.py”, line 152, in do_union
union(args.changes_dirs, args.extra_changes_dirs, args.storage_directory,
File “/builder/tcbuilder/cli/union.py”, line 128, in union
File “/builder/tcbuilder/cli/union.py”, line 107, in set_acl_attributes
File “/builder/tcbuilder/cli/union.py”, line 44, in apply_tcattr_acl
subprocess.run(setfacl_cmd, shell=True, check=True)
File “/usr/lib/python3.9/subprocess.py”, line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command ‘cd /storage/changes/usr/etc && setfacl --restore=/storage/changes/usr/etc/.tcattr’ returned non-zero exit status 1.