Skip to content

`/var/lib/cloud/scripts/per-boot` scripts are no longer executed after rebooting since cloud-init 24.3.1-1

Description:

/var/lib/cloud/scripts/per-boot scripts are no longer executed after rebooting since cloud-init 24.3.1-1 (08e804f7).

One of the causes of the issue is that the nc.openbsd dependency introduced in cloud-init 24.3 (https://github.com/canonical/cloud-init/commit/143bc9e40f7f33695216db60f73e10a900d1d1cd) is not available in ArchLinux. However, the issue still remains even after installing the openbsd-netcat package and symlinking /usr/bin/nc into /usr/bin/nc.openbsd

Additional info:

  • package version(s): 24.3.1-1
  • the issue does not seem to happen with Debian sid, although it uses the same version of cloud-init.

Steps to reproduce:

  1. Create /var/lib/cloud/scripts/per-boot/foo.sh via cloud-init
  2. Reboot
  3. The script is no longer executed since cloud-init 24.3.1-1
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information