From nobody Thu Jun 9 19:01:29 2022 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 A21C1834FE9 for ; Thu, 9 Jun 2022 19:01:29 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LJtjj2jg0z4tqY for ; Thu, 9 Jun 2022 19:01:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 3D2F31863 for ; Thu, 9 Jun 2022 19:01:29 +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 259J1TG3020400 for ; Thu, 9 Jun 2022 19:01:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 259J1Tem020399 for bugs@FreeBSD.org; Thu, 9 Jun 2022 19:01:29 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 264578] release/tools/vmimage.subr has no error handling for pkg failures Date: Thu, 09 Jun 2022 19:01:29 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dch@freebsd.org 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-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654801289; 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=SVczYsb7EN4+kjM2ZKCvyV/ivqKttildeSMn9+eJWuM=; b=wXJ6ke4Jik5VRFmBc9uJFbGSeKAatf8bbW1aitRS+hhANVpzxnnurjyTqlkXa1URfswrE1 1DzP24hW/srzvPl56dDfJmhFMNMClJGsHvcj/hFKRbwcAou/jjv494LEYAkKZM5LHqOF6q x3M6nzLK+I/iwK8bZVh4gHH99V8SNQdypNUCM79C2P+OxrrkXt5nYKOMHnaHUU71GUcZj7 M7dTRBJhugh34WrX4sgWMJt29yghmSDNIp9c8LBXqzQM0enrCP1wkBclN9vgTi4rJwBB/C 04uKa58pq7LKNst/SmFNI1SH8aNL4VGorrrT5sAtepB7RPcat0dYoUxyoffFnA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654801289; a=rsa-sha256; cv=none; b=Inr12oN7eQpRq3soNrrhNWwlzbXBE9Ree09f5jykFH+iM15PDLoKrdoWaJreYExuSeAM7U w5bkjFOwtSeOKf+QcmzHyQSz7yC+0n+v9vAXjSjwE1J6a5CxQ1od9ifKaHg6qtN7r9EmwU wtxieCGWpNRCZQqWqEUaAZSbB7L8EBheq/KhjSq15oSXtU0UehGa0oF8zTfxGun5YS69Pu vN5GSwo1xO0w8QiWAW7tTa5mhSSZRF+eGmn5niawjYpaUEXjZ7kHhKH+W0+7BxSPA138d8 dMKkqvVjmK7uVJl3gZwOVH5wKEhbEfk6AC9Oqv1l5uyw2wWJ/zSYQggKg2tK/Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264578 Bug ID: 264578 Summary: release/tools/vmimage.subr has no error handling for pkg failures Product: Base System Version: 13.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: dch@freebsd.org VM_EXTRA_PACKAGES is used in ec2.conf and gce.conf to install packages into the chrooted build artefact. When running pkg in chroot, if there are any errors, such as packages that are not available, or the repo being inaccessible, the build should fail here: chroot ${DESTDIR} ${EMULATOR} env ASSUME_ALWAYS_YES=3Dyes \ /usr/sbin/pkg install -y ${VM_EXTRA_PACKAGES} Currently, pkg return code is lost in the chroot. These alternatives also swallow the return code: pkg -o 'ABI=3DFreeBSD:13:amd64' --chroot ... pkg -o ABI=3DFreeBSD:13:amd64 --rootdir ... --=20 You are receiving this mail because: You are the assignee for the bug.=