public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Adolf Belka <adolf.belka@ipfire.org>
To: development@lists.ipfire.org
Cc: Adolf Belka <adolf.belka@ipfire.org>
Subject: [PATCH 2/2] cdrom: Install chroot into dracut environment
Date: Mon,  8 Sep 2025 14:09:23 +0200	[thread overview]
Message-ID: <20250908120923.3386025-2-adolf.belka@ipfire.org> (raw)
In-Reply-To: <20250908120923.3386025-1-adolf.belka@ipfire.org>

- 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 <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
 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  <info@ipfire.org>                     #
+# Copyright (C) 2007-2025  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # 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
-- 
2.51.0



      reply	other threads:[~2025-09-08 12:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-08 12:09 [PATCH 1/2] dracut-ng: Replace dracut with dracut-ng Adolf Belka
2025-09-08 12:09 ` Adolf Belka [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250908120923.3386025-2-adolf.belka@ipfire.org \
    --to=adolf.belka@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox