From patchwork Wed Dec 18 10:30:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Granados X-Patchwork-Id: 13913370 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 CC9C91F2C4A for ; Wed, 18 Dec 2024 10:30:12 +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=1734517812; cv=none; b=Suq+nAMuM7LkoQDg25bNcMukpLZj/cM7Rlj1XYBG8Pcb8UAe/Oht1LvHdEkAvujRXNHcHFyxQKxfLjbtCsnmXJAXgwW1W0M7kEIck/UdX/C5jHNw4Hx7Tl10mPQAxQjdQ3fgFbGSCyEdt60cj+r44kDVDurjsbURCz0f0qvrIvs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734517812; c=relaxed/simple; bh=l/flaod/aZKoU8m0yBnBUBZzRVVykVMk2fVKTOumNQU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FfEVGRoELjV9GVKMJzdcWkLzQBf2mQ9daOEjjbwg8gL8PcuOHBDjzBpQnT30ouUhtMp0Gicpv0XsNLxFpeRfOq0QaBxhpj7yMQkL/I6JCJK78Vhi5Ea9tda4cqqlSDAW2ZB3QOWyE9CyuISBkfegKs9FMtg70wFES5FvBDVfDoY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CxNwz7iC; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CxNwz7iC" Received: by smtp.kernel.org (Postfix) with ESMTPS id 99A81C4CED0; Wed, 18 Dec 2024 10:30:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1734517812; bh=l/flaod/aZKoU8m0yBnBUBZzRVVykVMk2fVKTOumNQU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=CxNwz7iCDazR6QGI3L64/2bCYC/6MZlC/vPZVLzxOEbulvPPoUNZYFg7AD0pweO/d xIdHo6Fq9xU0JytLn5U50rH9eUqmwvtMhXGpvVf2S5JPxlRfim0CMyBP6oOjjk3yWL VIT5Hbj1Xegu0aLKOdfGa9EtnAdfF95WMmLglVrneC1xYsbkiOVaJOf1pT+okgpED6 jKmXOaIqGzLO3rwOu5wiejZFQ6hfq3VwY+n7+DaFytR3lp0CJ4J9CwnNJ5JOaE0rgL sRVINOP/Q+DhrafnThiha2GA8Iqrm69sNx3+F1QSUreqOzjMG1U1KROVd0zjj3BlMN zqsf8izYUvkCQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 90FCDE7718A; Wed, 18 Dec 2024 10:30:12 +0000 (UTC) From: Joel Granados Date: Wed, 18 Dec 2024 11:30:04 +0100 Subject: [PATCH 10/12] bringup: Use full path when creating custom_source file Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241218-jag-bringup_fixes-v1-10-0bf2e07c640c@kernel.org> References: <20241218-jag-bringup_fixes-v1-0-0bf2e07c640c@kernel.org> In-Reply-To: <20241218-jag-bringup_fixes-v1-0-0bf2e07c640c@kernel.org> To: kdevops@lists.linux.dev Cc: Joel Granados , da.gomez@samsung.com X-Mailer: b4 0.15-dev-00a43 X-Developer-Signature: v=1; a=openpgp-sha256; l=940; i=joel.granados@kernel.org; h=from:subject:message-id; bh=l/flaod/aZKoU8m0yBnBUBZzRVVykVMk2fVKTOumNQU=; b=owJ4nAHtARL+kA0DAAoBupfNUreWQU8ByyZiAGdipDC19P9j5CpqAmnwsR0L2mlmJ1dunLF2q ILFlLYc4AD5R4kBswQAAQoAHRYhBK5HCVcl5jElzssnkLqXzVK3lkFPBQJnYqQwAAoJELqXzVK3 lkFPee4L/3DDhjxLkW0GUmv7nGfX4HLGs/+Ucgx+wkO7d8o4yFpTOfJXOFWqC41DMW73GFYoHgA r+MQnew3TWK7JEWqDLHBhKd7opkojk72iEp86PZREzzhtxTuDg6baYU4jamwo/AloJoF8SP/bIN +1ceMQYHOHWYcjJCl4jww7bJZ9h8aNPa+6fiF6ktcs1FxzqArD+VDIEEfAmGlkCd0zhXFMFZnAB QczwqBtWbB5kUfBQSNDJe5x9o/r95D2Fck6ZqMcsTdMe0Uob6ACYEt27GPjQfzBgSOl2Gp1Ptbu JHsSuNs3NYHTLNngzdktPIoYhgt4oB7IxWOgRibRandWvUeHpd8kHnEtEU4Bl8sOEijWiRPUUKi aIrvx1JOLntuInJlZ4aI1gnULLPEbIAzJyTIB/fdxX8BEUBmhETfwuPwYkvk9X8WPWJukjF17tU +9ak04Qy9Ten8kAj15qYiir8O0a1RWbfPF9wOWMsClfc4JyhmfWeLuzoD9l8aBc/qR+V82uah75 Dc= X-Developer-Key: i=joel.granados@kernel.org; a=openpgp; fpr=F1F8E46D30F0F6C4A45FF4465895FAAC338C6E77 X-Endpoint-Received: by B4 Relay for joel.granados@kernel.org/default with auth_id=239 Avoid "file not found" failures related to relative paths in custom_source Signed-off-by: Joel Granados --- scripts/bringup_guestfs.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/bringup_guestfs.sh b/scripts/bringup_guestfs.sh index 74eecea..f49fd12 100755 --- a/scripts/bringup_guestfs.sh +++ b/scripts/bringup_guestfs.sh @@ -34,7 +34,7 @@ build_custom_source() SOURCE_TMP=$(mktemp) cat <<_EOT >$SOURCE_TMP [local] -uri=file:///${CUSTOM_INDEX} +uri=file:///${REAL_CUSTOM_INDEX} proxy=off _EOT sudo mv $SOURCE_TMP $CUSTOM_SOURCE @@ -111,6 +111,7 @@ build_custom_image() CUSTOM_IMAGE_OK="${CUSTOM_IMAGE_DIR}.ok" CUSTOM_SOURCE="/etc/virt-builder/repos.d/kdevops-custom-images-${OS_VERSION}.conf" CUSTOM_INDEX="${CUSTOM_IMAGE_DIR}/index" + REAL_CUSTOM_INDEX="$(realpath $CUSTOM_INDEX)" mkdir -p ${CUSTOM_IMAGE_DIR}