https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287183
--- Comment #6 from [email protected] --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=09545628f0cd58406a47f302fb8584a5292d4b1a commit 09545628f0cd58406a47f302fb8584a5292d4b1a Author: Baptiste Daroussin <[email protected]> AuthorDate: 2025-06-10 07:09:47 +0000 Commit: Baptiste Daroussin <[email protected]> CommitDate: 2025-06-10 07:20:23 +0000 nuageinit: fix using user_data as a script In official cloudinit, when a user_data file starts with '#!' it should be execute late in the boot process. To respect this nuageinit now copy the user_data script into a /var/cache/nuageinit/user_data if found and a new "firsboot" rcscript anchored to the 'local' rc script is responsible to execute it if found. Note by doing this, we fix another issue we had with nuageinit, if the cloudinit provider provides the user_data scriptout with the executable permission, previous implementation was not working, like apparently what Digital Ocean is doing. PR: 287183 Reported by: olgeni@ libexec/nuageinit/nuageinit | 15 +++++++---- libexec/nuageinit/tests/nuageinit.sh | 30 ++++++++++++++++++++-- libexec/rc/rc.d/Makefile | 3 ++- .../rc/rc.d/nuageinit_user_data_script (new +x) | 25 ++++++++++++++++++ 4 files changed, 65 insertions(+), 8 deletions(-) -- You are receiving this mail because: You are the assignee for the bug.
