From patchwork Mon Sep 8 12:09:23 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adolf Belka X-Patchwork-Id: 9031 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "R13" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4cL5Nn2G1fz3wZx for ; Mon, 08 Sep 2025 12:09:45 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "mail02.haj.ipfire.org", Issuer "E8" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4cL5Nm6D4Qz2WJ for ; Mon, 08 Sep 2025 12:09:44 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4cL5Nm5Q91z30KT for ; Mon, 08 Sep 2025 12:09:44 +0000 (UTC) X-Original-To: development@lists.ipfire.org Received: from mail01.ipfire.org (mail01.haj.ipfire.org [IPv6:2001:678:b28::25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "mail01.haj.ipfire.org", Issuer "R13" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4cL5Nk1CWNz308m for ; Mon, 08 Sep 2025 12:09:42 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (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) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4cL5Nc4PmBz81; Mon, 08 Sep 2025 12:09:36 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1757333376; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tNwf9Yxg05QNUbJxKW7Uyhfxp/wauHSQxk9r88OtGKM=; b=Lx9jAhrlKKJKCfDl+XieVh47mby0GNnYxzOQYAnhIPBdMKBC3UWVhV/RE/v+Qras5cwZ+a 78S7Z1CEpQaWyyCw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1757333376; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tNwf9Yxg05QNUbJxKW7Uyhfxp/wauHSQxk9r88OtGKM=; b=VD5z9MjvzscfpszSz9kOUC9FeezKoFBlEo+zzgY/B6ZfYELt7SsH2r87B40EP6qyTjCKh5 zImSFKZGmJppmXj6RVmK7cXFu37xCCaCqjLb4+EamKQlwSWP5EPNnquHOVM3eemXiXeL/w uHHCpjCGQUdiqvc2TwoCbCmq+EvVTgB+P8sTHD+4PxNnaR6gpq62b4btX+a9BOBVapd7p6 9GHX7OmHcw9nBzpVdJr9ouOVjBcdQKwoUegsPN6iOQrGeko2gPmtBPPQmcNcmJkvODA1E4 elxuTHp3nrPp+Ktp8lzQWVp88AZPBbNCrg7dUrm8jnrogrRsk4AjIeNqOcbRWA== From: Adolf Belka To: development@lists.ipfire.org Cc: Adolf Belka Subject: [PATCH 2/2] cdrom: Install chroot into dracut environment Date: Mon, 8 Sep 2025 14:09:23 +0200 Message-ID: <20250908120923.3386025-2-adolf.belka@ipfire.org> In-Reply-To: <20250908120923.3386025-1-adolf.belka@ipfire.org> References: <20250908120923.3386025-1-adolf.belka@ipfire.org> Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: MIME-Version: 1.0 - dracut-058 had a commit for base to not require chroot inside initramfs - However the install of an iso requires chroot to be available for some of the actions such as the creation of the language cache etc. - Adding the install of the chroot binary into the dracut command in the cdrom package allowed thye full installation of IPFire to be carried out. Tested-by: Adolf Belka Signed-off-by: Adolf Belka --- lfs/cdrom | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lfs/cdrom b/lfs/cdrom index a25141fc2..ab1d0f895 100644 --- a/lfs/cdrom +++ b/lfs/cdrom @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2021 IPFire Team # +# Copyright (C) 2007-2025 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -167,7 +167,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) mkdir -p $(DIR_TMP)/cdrom/boot/isolinux cp /boot/vmlinuz-$(KVER) $(DIR_TMP)/cdrom/boot/isolinux/vmlinuz - dracut --force -a "installer" --strip $(DIR_TMP)/cdrom/boot/isolinux/instroot $(KVER) + dracut --install "/usr/sbin/chroot" --force -a "installer" --strip $(DIR_TMP)/cdrom/boot/isolinux/instroot $(KVER) ifeq "$(HAS_ISOLINUX)" "1" dd if=/dev/zero bs=1k count=2 > $(DIR_TMP)/cdrom/boot/isolinux/boot.catalog