]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
cdrom: Install chroot into dracut environment
authorAdolf Belka <adolf.belka@ipfire.org>
Mon, 8 Sep 2025 12:09:23 +0000 (14:09 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 18 Sep 2025 15:55:47 +0000 (15:55 +0000)
- 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>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/cdrom

index a25141fc20d82b68a0f10c2a40bfe3831ae1a713..ab1d0f895fdb42a7402eaa1184e581da18f7a179 100644 (file)
--- 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