Ah, I know now. cloud-init's prerm stops cloud-init-local.service, so if you are trying to purge cloud-init from user-data, stopping this will kill apt/dpkg/etc. I'll work around that in autopkgtest, but I wonder if we want to support that case in cloud-init itself. I'll have a closer look and prepare a patch.
** Summary changed: - cloud-init does not purge with systemd + purging cloud-init from user-data commands does not work under systemd ** Changed in: cloud-init (Ubuntu) Importance: Medium => Low ** Changed in: cloud-init (Ubuntu) Assignee: (unassigned) => Martin Pitt (pitti) ** Also affects: autopkgtest (Ubuntu) Importance: Undecided Status: New ** Changed in: autopkgtest (Ubuntu) Status: New => In Progress ** Changed in: autopkgtest (Ubuntu) Importance: Undecided => High -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to cloud-init in Ubuntu. https://bugs.launchpad.net/bugs/1427999 Title: purging cloud-init from user-data commands does not work under systemd To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/autopkgtest/+bug/1427999/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs