Hello again! While inspecting generated vm , I found the following symlink:
ls -l /etc/systemd/system/multi-user.target.wants/lxd-agent.service
lrwxrwxrwx 1 root root 80 Jun 21 11:25 /etc/systemd/system/multi-user.target.wants/lxd-agent.service -> /var/cache/distrobuilder.2956775421/overlay/lib/systemd/system/lxd-agent.service
In my opinion, the proper variant in generators/lxd-agent.go#L140 should be
- err = os.Symlink(path, filepath.Join(g.sourceDir, "/etc/systemd/system/multi-user.target.wants/lxd-agent.service"))
+ err = os.Symlink(filepath.Join(systemdPath, "system", "lxd-agent.service"), filepath.Join(g.sourceDir, "/etc/systemd/system/multi-user.target.wants/lxd-agent.service"))
, but I’m not an experienced programmer .
Temporary workaroud:
Append to actions:
additional trigger:
- trigger: post-files
action: |-
#!/bin/sh
set -ex
systemctl reenable lxd-agent.service
types:
- vm
Edit:
distrobuilder version - latest from master
Command:
distrobuilder build-lxd archlinux.yml /var/tmp/archlinux-vm --cleanup=false --compression=zstd --disable-overlay --keep-sources=false --debug --vm
Host OS - archlinux x86_64