DPU-OS Tailoring Guide
This document explains how to use imageTailor to trim the DPU-OS installation image using configuration files from the dpu-utilities repository. Follow these steps:
Prepare imageTailor and Required RPM Packages
Install the imageTailor tool by referring to the imageTailor User Guide and prepare the necessary RPM packages for tailoring.
You can use the openEuler installation image as the RPM source. While openEuler-22.03-LTS-everything-debug-aarch64-dvd.iso contains a complete set of RPMs, it is large. Alternatively, use the RPMs from openEuler-22.03-LTS-aarch64-dvd.iso along with the install-scripts.noarch package.
Obtain the install-scripts.noarch
package from the everything repository or download it using yum:
yum install -y --downloadonly --downloaddir=./ install-scripts
Copy DPUOS Configuration Files
The imageTailor tool is installed in /opt/imageTailor by default. Copy the DPU-OS configuration files to the appropriate paths, selecting the correct architecture directory. The DPU-OS tailoring configuration repository supports x86_64 and aarch64 architectures.
cp -rf custom/cfg_dpuos /opt/imageTailor/custom
cp -rf kiwi/minios/cfg_dpuos /opt/imageTailor/kiwi/minios/cfg_dpuos
Modify Other Configuration Files
- Add a line for
dpuos
configuration in kiwi/eulerkiwi/product.conf:
dpuos PANGEA EMBEDDED DISK GRUB2 install_mode=install install_media=CD install_repo=CD selinux=0
- Add a line for
dpuos
configuration in kiwi/eulerkiwi/minios.conf:
dpuos kiwi/minios/cfg_dpuos yes
- Add a line for
dpuos
configuration in repos/RepositoryRule.conf:
dpuos 1 rpm-dir euler_base
Set Passwords
Navigate to /opt/imageTailor and update the passwords in the following files:
custom/cfg_dpuos/usr_file/etc/default/grub
custom/cfg_dpuos/rpm.conf
kiwi/minios/cfg_dpuos/rpm.conf
For password generation and modification, refer to the openEuler imageTailor manual section on Configuring Initial Passwords.
Execute the Tailoring Command
Run the following command to perform the tailoring. The resulting ISO will be saved in /opt/imageTailor/result:
cd /opt/imageTailor
./mkdliso -p dpuos -c custom/cfg_dpuos --sec --minios force