Rebranding FAQ

1. Installation Failure with Boot Loader Configuration Write Error

Context

The installation fails when rebranding operations are performed using openEuler system packages.

Symptom

Image installation fails with error "Unable to write boot loader configuration."

image

Possible Causes

Switching to the background terminal with Ctrl+Alt+F2 reveals the following in /tmp/anaconda.log:

image

The logs indicate the bootloader configuration file cannot be found. This occurs because the installation process verifies the ID and VARIANT_ID values in the /etc/os-release file.

image

Solution

Modify the os_id and variant_id parameters under Profile Detection in the openEuler.conf file of Anaconda to match those in the os-release file of the rebranded system.

image

2. Installation Completes but System Fails to Boot

Context

Following rebranding, the system image installs correctly but becomes unbootable post-installation.

Symptom

Startup fails with an "EFI boot file not found" error.

image

Possible Causes

Rebranding of software packages is incomplete, particularly affecting the GRUB bootloader configuration.

Resolution

  1. Verify boot entries for configuration errors:

    image

  2. See System File Recovery FAQ for adjusting boot configurations after entering the system.

  3. Permanently fix it by updating grub.cfg in the build environment.

3. tk Installation Fails During Post-Rebranding Kernel Build

Context

After rebranding, building the openEuler kernel via OBS triggers a tk installation failure.

image

Symptom

Installation verification of the tk package fails, and standalone installation also results in an error. The issue occurs during the %post phase of the component.

image

Possible Causes

Unrecognized %ldconfig_post or %ldconfig_postun macros in the spec file are being incorrectly processed as executable scripts.

image

Resolution

Update macro definitions in the rpm-config configuration of the project.

4. POSTTRANS Scriptlet Execution Failure During Installation

Context

POSTTRANS script errors occur when either rebranded software packages or locally built software images are installed.

image

Symptom

  1. Switch to the background console using Ctrl+Alt+F2 and change root into /mnt/sysroot.
  2. Run dnf history info 1 to identify the failing POST operation. image

Possible Causes

The %POSTTRANS script fails during package installation due to missing .gz files.

Solution

Analyze the %post script in the package spec file. After local verification of the modified script, retry the installation.