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.
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.