Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 737361860 for ; Sat, 30 Mar 2024 17:01:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711818063; cv=none; b=VYWXLxcrXY+EQA4+9pqz6gQLCZIh9AbwIkBJD0qfnN7K3S32II0CX87fMCUgh9w3araGF+OVY4nCj6QO78sHowR90G7x14B3/9EQUZbZqBWaVX79/ea4DHP0hzgfuEHKTugvIRyXntNj2omB8nn81XsuhJKKXg92dylvdoU+Ers= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711818063; c=relaxed/simple; bh=VoPBp1BDiEzvb7lHfsLxpjU+x4qmOTs1ZRPioomop4E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bohZ2thFI1avanc85W2vAX9kuSh5E12OGrKQRGTYd2EVaI85OAjyP/At918hXKicrGOc3eJbYTRVzXM/miXcPuVh+kWbOHWRWQIT5MT+EQJHG4VRSxj8CAdwN+9ERM7n1eIq1AC9fLGfeflvWIsT2TwTxtvU6FP4lNfC2/8ixDI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99DB9C433F1; Sat, 30 Mar 2024 17:01:02 +0000 (UTC) From: Chuck Lever To: kdevops@lists.linux.dev Cc: Chuck Lever Subject: [PATCH] vagrant: Fix the "validate before bringup" Kconfig option Date: Sat, 30 Mar 2024 13:00:57 -0400 Message-ID: <20240330170057.786470-1-chuck.lever@oracle.com> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Checking either box selects both, which is unexpected behavior. Fixes: bbe7145e2452 ("vagrant: add Vagrantfile validation step") Signed-off-by: Chuck Lever --- scripts/bringup_vagrant.sh | 2 +- vagrant/Kconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) Posting for review in case some has a different preferred way of fixing this minor issue. diff --git a/scripts/bringup_vagrant.sh b/scripts/bringup_vagrant.sh index 943a47f192bc..4d30c2312000 100755 --- a/scripts/bringup_vagrant.sh +++ b/scripts/bringup_vagrant.sh @@ -88,7 +88,7 @@ if [[ "$CONFIG_VAGRANT_BOX_UPDATE_ON_BRINGUP" == "y" ]]; then vagrant box update fi fi -if [[ "$CONFIG_VAGRANT_BOX_UPDATE_ON_BRINGUP" == "y" ]]; then +if [[ "$CONFIG_VAGRANT_VALIDATE_BEFORE_BRINGUP" == "y" ]]; then vagrant validate if [[ $? -ne 0 ]]; then echo "kdevops: Failed to validate Vagrantfile, stopping here" diff --git a/vagrant/Kconfig b/vagrant/Kconfig index b5abba76f94f..93480274885e 100644 --- a/vagrant/Kconfig +++ b/vagrant/Kconfig @@ -239,7 +239,7 @@ config VAGRANT_BOX_UPDATE_ON_BRINGUP manually by the typical distro means to update itself. For example on Debian testing that's "apt-get update && apt-get dist-upgrade". -config VAGRANT_BOX_UPDATE_ON_BRINGUP +config VAGRANT_VALIDATE_BEFORE_BRINGUP bool "Validate Vagrantfile prior to bringup" default y help -- 2.44.0