From nobody Wed May 6 17:40:44 2026 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4g9jN05Zt1z6cFs2 for ; Wed, 06 May 2026 17:40:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4g9jN00pWRz3nk6 for ; Wed, 06 May 2026 17:40:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1778089248; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=f0sahHHW238BHMjSEehdd7X06CE5SdlxkxsrR1dvr1Q=; b=sJCYTgjpa+HCCPSPMbRZOf2OzVsCc0nVKBwO+9FZW+wRkPidAvimk5Np2Ziex5N7+fEeUN 4SNthtVk89qG5cuYwAOwVvDsMqW6DqJ1Ey2R5wiw6AtoJR3tuNx++0W5sG8LzmorLYc9r1 N8iEZcMp85Lmhft9mCOmR9AGgIRtBixaY/2ibr8Qc/JzSjiEu4Fv+KKFbRl4vL4x9smUv8 RtCJFaIVfWij3d8YONAuMmju6TpED/As2Blvo5OYsyJFmCIa+NRCOGLpcxkyJ78kjzhT6P iwJ71K0gaB85jwEkNG0kMKzHvaYBbmtSLk7Bbd+cGr3CIvQtcu42e9frBAheug== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1778089248; a=rsa-sha256; cv=none; b=H9zBDzV+yxFj4MVEhFPP8aOqog7HYmu7S79UgOj3oU5w2YWqZ2ppGudpi11wzzAaKrIQ3H boUF3YCKHt3cVhx0zN7037Q02i85Pgspy54NdLf8D4U9pAI//7c/ccJ+8B8YS4m+OOY07W /7nxDYW/yokzWw00ZHkK7tUK4ZNYtSYz3tF80BrUaIUJI58v1T/VbLNGfyJ+5W1y30RsLq C55AeGLc7D1I1X8Pa6XOG6LCpkaTXpL/qB3kLRbWQ1tbagvskujFLaSsluY9/A0nLXfrZi dqnFoiDzQ4hai6BcBN27ERv3dNk6d06qPE4F8jvfRlc1TAXw+6gc4jQ/aU/uIA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1778089248; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=f0sahHHW238BHMjSEehdd7X06CE5SdlxkxsrR1dvr1Q=; b=HPtiJRbNZByX9P5DA3erkCR2KPqIlZIXKV1OVvCwrI0wJuJl/NnI/huXG2N2hSapPo08T/ +4VB0Pd8mwpsmhX5Mdc34s4B3NSpP0NPTT0HFSrXrKQ2kW3Ihm6pbQFg4loC+6ZpxjnNbN apocDQYuyOgAM3+C/ibxwTEaFB+2k7wZ1ycxMW/1beK8cFjRraHEAy6ZMdkwNAJ0f/Ir3C 5dvSATBx8dc9ByDFYdRjNlT8U9+aOl5dGDiQVFoTyOPvJ4DC6OkEbkheevxlH11rfmRjkO DSQE2yw2mi4tL3pZ627PWrpHZBn5xOrK3ny3E9G5OYrUwQ45HkC9YGHqNE1ZMQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4g9jMz72Tczpxs for ; Wed, 06 May 2026 17:40:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 646HeltV050126 for ; Wed, 6 May 2026 17:40:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 646HelgX050121 for bugs@FreeBSD.org; Wed, 6 May 2026 17:40:47 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 295062] nuageinit fails for non-YAML user-data scripts Date: Wed, 06 May 2026 17:40:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: ross@exitzero.uk X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D295062 Bug ID: 295062 Summary: nuageinit fails for non-YAML user-data scripts Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: ross@exitzero.uk nuageinit(7) provides support for cloud-init (https://cloud-init.io/) to al= low customisation of FreeBSD disk images on first boot. "BASIC-CLOUDINIT" images are built as part of the FreeBSD release process, with nuageinit configured= to run on first boot. On previous FreeBSD releases (I have tested on 14.3 and 15.0), the "user-da= ta" (or "user_data") file could be provided as a YAML file, with the first line reading "#cloud-config" (note there is a typo in the man page, which incorrectly specifies "#!cloud-config") or as an executable script, with a shebang like "#!/bin/sh -e". Historically, YAML support was quite limited and so I needed a shell script= to provide my required functionality. Unfortunately, support for executable scripts is broken in CURRENT, 14.4-RELEASE and 15.1-RELEASE (awaiting beta testing at time of writing). The bug is in /usr/libexec/nuageinit (https://cgit.freebsd.org/src/tree/libexec/nuageinit/nuageinit) introduced = in this commit: https://cgit.freebsd.org/src/commit/libexec/nuageinit/nuageinit?id=3Dcae280= 931c9e1f072d8bf300c377ae120300b898 On line 732 (https://cgit.freebsd.org/src/blame/libexec/nuageinit/nuageinit?id=3Dcae280= 931c9e1f072d8bf300c377ae120300b898#n732) the load_userdata() function attempts to parse the user-data file as YAML, = then failing and exiting if that parsing is unsuccessful. Unfortunately, the ch= eck for whether the file contains YAML or not doesn't occur until line 760 (https://cgit.freebsd.org/src/blame/libexec/nuageinit/nuageinit?id=3Dcae280= 931c9e1f072d8bf300c377ae120300b898#n760), which is run after the load_userdata() function has been called. It is therefore never possible to reach line 793, where a non-YAML, executa= ble user-data file is handled. Possible workaround: Switch away from an executable user-data to YAML. I do= n't believe this will meet all my requirements since my existing script explici= tly sets group IDs, which isn't supported in the YAML version. --=20 You are receiving this mail because: You are the assignee for the bug.=