Pre-weekend braindump: I've had success with modifying a xenial image
like that:
/usr/sbin/invoke-rc.d:
if ! systemctl --quiet is-active default.target; then
sctl_args="--job-mode=ignore-dependencies"
fi
Add multi-user.target to cloud-{config,final}.service
Then this works:
lxc launch ubuntu-xenial-mod --config=user.user-data="$(printf
"#cloud-config\npackages: [postgresql, samba, postfix]")" x1
Services start:
# systemctl list-units --no-legend postg* samb* postfix*
postfix.service loaded active running LSB: Postfix Mail Transport
Agent
postgresql.service loaded active exited PostgreSQL RDBMS
[email protected] loaded active running PostgreSQL Cluster 9.5-main
samba-ad-dc.service loaded active exited LSB: start Samba daemons for
the AD DC
and reboot works fine.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1576692
Title:
fully support package installation in systemd
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1576692/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs