From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 560DDB676 for ; Wed, 8 May 2024 06:50:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715151041; cv=none; b=Qg77JewynurV0ue2EOCkXYX+nJFv4Jd2J+xcr9iGN/B5Bp1T9+9fsmQ/GH7pzrnUHKtTtTxghorFfa2y1ytnfgYhzo1pCByIvb4jDsRgKRmE8VyMOhrr7+5JPF84E6BRKYqOaAZQbXaBsN+fIXe2+ee708CqaHS2+Xvm5kalbus= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715151041; c=relaxed/simple; bh=m1NdmbyB834pXbLphf8n4ux6XDoQZN8e77s/H/EkH6s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=A740pVzG8yPowdIfMDJVEUyx8HqBHxWYyiZtZ5mGNnknQgDMuvYZRTMRKOddhOSyXSUuOtNVoYSwnEJ6z0Jsr4JPdszxra0YqPcYHdQr9GseurwSjmhZAb48WNkYYMduPSXuQJaynDU/VW8AJMELR5aG0ET7sZ4wsSQx/FQafWM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=Xxe/bPhl; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="Xxe/bPhl" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=Xu+mE+dxAhbZdz0IoQyElznniayxl3DbE0M/+aMH1SQ=; b=Xxe/bPhl96HYddXu+UlJVU39a5 QNPId4IyJLB8v3HC/mjUL9tJirDVpJaRd8Aq0lK5fEh5ftEBNBPdHkOv3wJpMS67pN/dp/8ar+tyM PXmn0Owat4co2oBT7xQm/IBWUnO7b5C0RiGwgDxuZQEHteoqPDSvmJU+WW5TRbZH4/ml2Ezyv5DV9 h4oEJb2U2DTsV5lng02/toU/qeF7dr4Z9GDcyckrkPbp5v5960s6bVoNDZsBhO/y4H7ltXy/Ugv3m SxAwJ7i9xZMd3mUgEwrY9cRLNr4OgUnqlOpRRU9js+dwIPCaqf9jD5eZ7U0q0sMYi2uwU26VBRqSF aH6SqMsQ==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1s4b8R-0000000EIk8-46wE; Wed, 08 May 2024 06:50:39 +0000 From: Luis Chamberlain To: kdevops@lists.linux.dev Cc: mcgrof@kernel.org Subject: [PATCH 00/10] guestfs: custom image + mirroring sources.list heuristic Date: Tue, 7 May 2024 23:50:28 -0700 Message-ID: <20240508065039.3408637-1-mcgrof@kernel.org> 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 Sender: Luis Chamberlain A lot of these patches are just cleanups, but there are two patches which took a bit more time and thought, and that is why I am posting them. The two patches you should certainly review are: 5) guestfs: add initial debian trixie support with custom URLs 6) guestfs: add support to infer host distro mirrororing optimizations 5) adds initial trixie support, but more importantly it makes is super easy for those of you stuck in vagrant world because you have no virt-builder index yet available for you. This should get you unstuck and let you start testing guestfs. Sadly, the debian trixie image doesn't work yet, but there is enough effort here that I hope we can figure it out eventually. The *real* meat and bones of that patch is the way to deal with custom local kdevops sources and indexes for virt-builder in a way that allows us to grow. As hackers we want bleeding edge, and so this let's us get as close to as bleeding edge as we can. 6) is just an optimization, if your host is already using mirror we should simply adopt mirroring for packages on the guest too. This should speed up guest bring up considerably and best of all, it should be automatic. Luis Chamberlain (10): guestfs: move debian options before image names guestfs: modify grub prompt before first bring up guestfs: set default root password guestfs: check for virt-builder failure guestfs: add initial debian trixie support with custom URLs guestfs: add support to infer host distro mirrororing optimizations guestfs: move rhel activation to its own helper guestfs: move copying yum repo to its own routine guestfs: move pre-install customizations to its own routine guestfs: move debian pre-install hacks to its own routine kconfigs/Kconfig.defaults | 4 + kconfigs/Kconfig.distro | 16 ++ kconfigs/Kconfig.guestfs | 155 ++++++++++++- scripts/bringup_guestfs.sh | 228 +++++++++++++++++--- scripts/get-distro-has-hop-count-sources.sh | 39 ++++ scripts/os-debian-version.sh | 19 ++ 6 files changed, 426 insertions(+), 35 deletions(-) create mode 100755 scripts/get-distro-has-hop-count-sources.sh create mode 100755 scripts/os-debian-version.sh -- 2.43.0