From mboxrd@z Thu Jan 1 00:00:00 1970 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 9E56B242938 for ; Wed, 24 Sep 2025 20:16:52 +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=1758745012; cv=none; b=XJZdGzvyXXL9McOu+9njBtQrS0VRGGzJicJ3d7LyftdiHsi/7igPQhEmYii0X+1Wm2+I+65VKxFWJQFJig4h6hjnYh0rgVgHNMgzIO75iyRLLEr44yymnEKbpup+ksJkf5dDrMmgOfSzNmxlHJvhjvK5XlRuaRPDKWgZynXsJv0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758745012; c=relaxed/simple; bh=GEmH8wZyYNTuoaS9o01CJrTZSaMRtGUI6kFa/doRmHo=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=AtdHXU8Yw78yIy2MqbZPp2yo/FAzIathybZ+OuEkdY7VpwL1IubYbuWwc5yRqPpAe5glIrESj783RwXrQFf/XzsnXY9uGvqV8+z5VFe3IRlS0rxqpTCNg/QDKaXmOgBPH9m+B8xLKXi4NZ6Wv0lwvROb6KZ9Xzn4cxq8MpnWI58= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=V9LFQ7OG; 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="V9LFQ7OG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6196C4CEE7 for ; Wed, 24 Sep 2025 20:16:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1758745012; bh=GEmH8wZyYNTuoaS9o01CJrTZSaMRtGUI6kFa/doRmHo=; h=From:To:Subject:Date:From; b=V9LFQ7OGIoVHMe/jMDRpue24+iXq5QFni8wQvJX8wr61pJibTXBdxdKUEZzzR2z3h WnQcFA1IYUQoVHYPygq3QaT02QeJAKmVkAoXm0h1Hr+Ue9gQInwBc7TldeQk09js1p HyRSZQTsHdeNCD9IqyulX7yYAC5fV6S15n5DreK381ujTviJV8QUvkyho5YhaJFXsI Abxes9cMZK7cZbm2dd1DlDV0kX5GZlkzSZMtKANJgqzAp/VUj4zNTIJu7yNVHxHYJa 05hob/++gU/R4bDtW0WeB7LQdLpqEB4r1AdmHxjl/UqtQpkPsx5dPs1FvDggVO3taV 2N5+5gSsGzn4g== From: Jeff Layton To: kdevops@lists.linux.dev Subject: [PATCH] guestfs: eliminate rescue initramfs images from base images Date: Wed, 24 Sep 2025 16:16:50 -0400 Message-ID: <20250924201650.333989-1-jlayton@kernel.org> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit dracut-config-rescue generates the "rescue" images in the /boot partition (at least on Fedora hosts). This is a waste of space since these are ultimately throwaway VMs. Uninstall dracut-config-rescue from the base images so that rescue initrds are not generated in the guests, thus saving space for more "make linux" invocations. Signed-off-by: Jeff Layton --- playbooks/roles/base_image/templates/virt-builder.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/playbooks/roles/base_image/templates/virt-builder.j2 b/playbooks/roles/base_image/templates/virt-builder.j2 index 6805679a8959..3f927f516c4b 100644 --- a/playbooks/roles/base_image/templates/virt-builder.j2 +++ b/playbooks/roles/base_image/templates/virt-builder.j2 @@ -13,6 +13,8 @@ copy-in {{ guestfs_distro_source_and_dest_file }}:{{ target_dir }} {% endif %} install sudo,qemu-guest-agent,python3,bash +uninstall dracut-config-rescue + run-command useradd {{ kdevops_uid }} -s /bin/bash -m kdevops append-line /etc/sudoers.d/kdevops:kdevops ALL=(ALL) NOPASSWD: ALL edit /etc/default/grub:s/^GRUB_CMDLINE_LINUX_DEFAULT=.*/GRUB_CMDLINE_LINUX_DEFAULT="console=ttyS0"/ -- 2.51.0