[Bug 280980] sysutils/amazon-ssm-agent freebsd-update fails when run by amazon-ssm-agent

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 21 Aug 2024 17:25:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280980

            Bug ID: 280980
           Summary: sysutils/amazon-ssm-agent freebsd-update fails when
                    run by amazon-ssm-agent
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: cperciva@FreeBSD.org
          Reporter: amendlik@gmail.com
          Assignee: cperciva@FreeBSD.org
             Flags: maintainer-feedback?(cperciva@FreeBSD.org)

When running `freebsd-update` using the SSM Agent, the process fails with the
following output. I have seen this both when attempting to use the
`firstboot_freebsd_update` service, and when running `freebsd-update` directly.

Here is the command I'm using: su -l root -c 'service firstboot_freebsd_update
onestart'

And the output:
freebsd-update 6284 - - src component not installed, skipped
freebsd-update 6284 - - Looking up aws.update.FreeBSD.org mirrors... 1 mirrors
found.
freebsd-update 6284 - - Fetching metadata signature for 14.1-RELEASE from
dualstack.aws.update.freebsd.org... done.
freebsd-update 6284 - - Fetching metadata index... done.
freebsd-update 6284 - - Inspecting system... done.
rm: tmpfile: No such file or directory
rm: tmpfile: No such file or directory
sha256: tmpfile: No such file or directory
[: !=: unexpected operator
/usr/sbin/freebsd-update: cannot open tmpfile: No such file or directory
rm: tmpfile: No such file or directory
rm: tmpfile: No such file or directory
rm: tmpfile: No such file or directory
rm: tmpfile: No such
---Error truncated----

-- 
You are receiving this mail because:
You are the assignee for the bug.