Technical data
Chapter 3
Diagnostics
Customizing the Service OS ISO Image
192
Customizing the Service OS ISO Image
To create a customized Service OS ISO image with customized BDP configurations and any other changes,
follow these instructions:
1. Copy the ISO image to a Linux machine.
2. Mount the ISO image using the Loopback interface.
# mkdir /mnt/loop
# mount -o loop ReleasedImage.iso /mnt/loop
3. Copy the entire directory structure of the mounted image to the new location.
# cp -a /mnt/loop/* /home/CopiedImageTree
4. Unmount the ISO image.
# umount /mnt/loop
5. Make changes to the files (add, remove, or edit) in the new location. Most custom-tailoring, such as
changing passwords or network configuration options, or adding custom prebuilt test packages, will
require changing files in the initrd:
•Unzip the initrd:
# gunzip /home/CopiedImageTree/boot/isolinux/initrd.gz
• Mount the initrd using the loop interface:
# mount -o loop /mnt/loop \ /home/CopiedImageTree/boot/isolinux/initrd
• Modify files, copy new files (.pkg, ...)
# cp /tmp/*.pkg /mnt/loop/opt/intel/bdp/MPC0020/Configuration/
• Unmount the initrd:
# umount /mnt/loop
• Rezip the initrd:
# gzip /home/CopiedImageTree/boot/isolinux/initrd
6. Use mkisofs to create a new ISO image from the new location.
# mkisofs -o newimage.iso -b boot/isolinux/isolinux.bin -c \
boot/isolinux/isolinux.cat \
-no-emul-boot -boot-load-size 4 -boot-info-table -l -R -r -U \
./CopiedImageTree