View Issue Details

IDProjectCategoryView StatusLast Update
0007283Kali LinuxGeneral Bugpublic2021-08-13 07:28
ReporterAlexSN Assigned Toarnaudr  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionnot fixable 
Product Version2021.2 
Summary0007283: build.sh --installer does not include files in kali-config/common/includes.chroot
Description

build.sh --installer does not include files in kali-config/common/includes.chroot

Building a live iso (build.sh), Does include all files under kali-config/common/includes.chroot
Building an installer iso (build.sh --intaller). Does not.

Thanks in advance

Steps To Reproduce

Prepare yourself for custom bilding
add some files to /live-build-config/kali-config/common/includes.chroot
Execute build.sh --installer
After installing the resulting .iso, files are not where they should.

Same build without the --installer and after installing from that image the files are where they should.

Additional Information

Logs in build for live image show:

[2021-08-11 11:07:24] lb chroot_includes_after_packages
P: Begin copying chroot includes after packages have been installed...
P: Copying includes.chroot into chroot using rsync...
sending incremental file list
etc/live/config.conf.d/kali.conf
opt/wp2930207-plain-colour-wallpaper-hd.jpg
opt/Balena Etcher/
opt/Balena Etcher/balenaEtcher-1.5.121-x64.AppImage
opt/Cryptomator/
opt/Cryptomator/cryptomator-1.5.15-x86_64.AppImage
usr/lib/live/config/0031-kali-user-setup
usr/lib/live/config/1165-fix-openssh-server

Logs for installer image do not show anything similar

Activities

AlexSN

AlexSN

2021-08-11 13:05

reporter   ~0014988

Sorry, did not type an s here:
Building an installer iso (build.sh --intaller). Does not.

That line should read: Building an installer iso (build.sh --installer). Does not.

It is only a typo, when I tried, the command was correct

arnaudr

arnaudr

2021-08-12 18:28

manager   ~0014998

This is not a bug. The directory "includes.chroot" is only for adding files to the Live image. It's not for the installer.

It's mentioned in the documentation, albeit it's not super explicit:

| With Live images, you have the option to include additional files or scripts
| in your build by overlaying them on the existing file-system, inside the
| includes.{chroot,binary,installer} directories, respectively.
| -- https://www.kali.org/docs/development/live-build-a-custom-kali-iso/

I'm not sure you can do that with the installer image

AlexSN

AlexSN

2021-08-13 06:59

reporter   ~0015000

OK. That text below misleadme.
Thanks for your time.


You can configure virtually any aspect of your Kali ISO build, such as adding packages from outside of Kali network repositories, unattended installations to changing the default wallpaper. Our build-scripts provides a framework that uses a configuration set to automate and customize all aspects of building the images. The Kali Linux development team use the same build-scripts to produce the official Kali ISO releases.

arnaudr

arnaudr

2021-08-13 07:28

manager   ~0015002

The tool that builds the installer image is "simple-cdd". Therefore the directory "live-build-config/simple-cdd" contains things specific to the installer image.

The Debian wiki contains some information: https://wiki.debian.org/Simple-CDD/Howto. See the sections "Add custom files onto your installer CD" and "Add self-built packages to CD", maybe it can help.

Did you also check https://forums.kali.org/ ? Maybe there are some information, or maybe someone can help over there.

Good luck!

Issue History

Date Modified Username Field Change
2021-08-11 13:01 AlexSN New Issue
2021-08-11 13:05 AlexSN Note Added: 0014988
2021-08-12 18:28 arnaudr Note Added: 0014998
2021-08-13 06:59 AlexSN Note Added: 0015000
2021-08-13 07:28 arnaudr Note Added: 0015002
2021-08-13 07:28 arnaudr Assigned To => arnaudr
2021-08-13 07:28 arnaudr Status new => closed
2021-08-13 07:28 arnaudr Resolution open => not fixable