From Mageia wiki
Chroot for documentation purposes
At first you need some tools
urpmi squashfs-tools x11-server-xephyr
I suggest that the work will be done from the directory /cauldron. Another directory can be used. I get a local copy of the repository.
mount -o loop Magiea.iso /mnt/cauldron cp -R /mnt/cauldron/* /cauldron/.
Move into the working directory
cd /cauldron/install/stage2/
I suggest that the target for the installation is /mga3 Start the installer
../../misc/drakx-in-chroot ../../../i586/ /mga3
Add modifications
The installer uses an image: install/stage2/mdkinst.sqfs To add modifications, you need to modify it. First, you need to obtain the content of the image:
unsquashfs mdkinst.sqfs
Add your modifications in the directory squashfs-root/
After that, you need to rebuild the image:
rm mdkinst.sqfs mksquashfs squashfs-root/ mdkinst.sqfs
Some other resources: Drakx-installer_tips_and_tricks#drakx-in-chroot