2024年2月

  1. Create a mounting directory for the original UOS/Deepin installation image and the new image to be produced. Open a terminal and enter:
    sudo mkdir -p /mnt/uos20old /mnt/uos20new
  2. Mount the official installation image.
    sudo mount ~/Downloads/uniontechos-desktop-home-1030-amd64.iso /mnt/uos20old/
  3. Synchronized mirroring.

    sudo rsync -av /mnt/uos20old/ /mnt/uos20new/
    sudo sync
  4. Prepare the OEM directory for the new image to place the deb software package to be integrated and installed.
    sudo mkdir -p /mnt/uos20new/oem/deb
  5. Copy the software package to be integrated and installed to the directory above.

  6. Install the necessary CD image creation tool xorriso.

    sudo apt update
    sudo apt install xorriso 
  7. Write the installation image production script build-iso.sh. The nano command line editor is used here.
    sudo nano /mnt/build-iso.sh
    The content of build-iso.sh is as follows

    #!/bin/bash
    xorriso -as mkisofs -D -r -V "UOS 20" \
     -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat \
     -no-emul-boot -boot-load-size 4 -boot-info-table \
     -eltorito-alt-boot --efi-boot boot/efi.img \
     -input-charset utf-8 \
     -o uos-20-home-amd64.iso uos20new
  8. Execute the build-iso.sh script to create a UOS/Deepin installation image.

    cd /mnt
    sudo chmod +x build-iso.sh