Rate This Document
Findability
Accuracy
Completeness
Readability

Configuring the Installation Environment

  1. Log in as the root user and install kernel development tools.
    1
    yum -y groupinstall "Development Tools"
    
  2. Install other dependencies.
    1
    yum -y install audit-libs-devel binutils-devel elfutils-devel kabi-dw ncurses-devel newt-devel numactl-devel openssl-devel pciutils-devel perl perl-devel python2 python3-docutils xmlto xz-devel elfutils-libelf-devel libcap-devel libcap-ng-devel llvm-toolset libyaml libyaml-devel kernel-rpm-macros kernel-abi-whitelists java-devel python3-devel libnl3-devel
    

    If libyaml-devel cannot be installed, download its RPM package and install it.

    1
    rpm -ivh https://repo.almalinux.org/almalinux/8/PowerTools/aarch64/os/Packages/libyaml-devel-0.1.7-5.el8.aarch64.rpm
    
  3. Add mockbuild.
    1
    useradd -s /sbin/nologin mockbuild
    
  4. Install e2fsprogs packages.
    1. Obtain the RPM packages.

      You can download each package separately. If you select all files in zip, you need to log in to the website to batch download the packages.

    2. Upload the RPM packages to the server.
    3. Install the RPM packages. If an error is reported during the installation, add --force to the end of the command to forcibly install the RPM packages.
      1
      rpm -ivh libcom_err-1.46.2.wc3-0.el8.aarch64.rpm e2fsprogs-debuginfo-1.46.2.wc3-0.el8.aarch64.rpm libcom_err-debuginfo-1.46.2.wc3-0.el8.aarch64.rpm libcom_err-devel-1.46.2.wc3-0.el8.aarch64.rpm libss-1.46.2.wc3-0.el8.aarch64.rpm libss-debuginfo-1.46.2.wc3-0.el8.aarch64.rpm libss-devel-1.46.2.wc3-0.el8.aarch64.rpm e2fsprogs-libs-1.46.2.wc3-0.el8.aarch64.rpm e2fsprogs-1.46.2.wc3-0.el8.aarch64.rpm e2fsprogs-debugsource-1.46.2.wc3-0.el8.aarch64.rpm e2fsprogs-devel-1.46.2.wc3-0.el8.aarch64.rpm e2fsprogs-libs-debuginfo-1.46.2.wc3-0.el8.aarch64.rpm e2fsprogs-static-1.46.2.wc3-0.el8.aarch64.rpm
      
  5. Set the permissive mode.
    1. Modify the /etc/selinux/config file.
      1
      vi /etc/selinux/config
      
      Change SELINUX=enforcing to SELINUX=permissive.
       1
       2
       3
       4
       5
       6
       7
       8
       9
      10
      11
      # Th----is file controls the state of SELinux on the system.
      # SELINUX= can take one of these three values:
      #     enforcing - SELinux security policy is enforced.
      #     permissive - SELinux prints warnings instead of enforcing.
      #     disabled - No SELinux policy is loaded.
      SELINUX=permissive
      # SELINUXTYPE= can take one of these three values:
      #     targeted - Targeted processes are protected,
      #     minimum - Modification of targeted policy. Only selected processes are protected.
      #     mls - Multi Level Security protection.
      SELINUXTYPE=targeted
      
    2. Reboot the server.
      1
      reoot