!30 fix: 修复 openEuler 22.03 LTS 构建错误

From: @chainsx 
Reviewed-by: @jianminw 
Signed-off-by: @jianminw
This commit is contained in:
openeuler-ci-bot 2025-08-24 09:03:41 +00:00 committed by Gitee
commit be344656e3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -241,7 +241,7 @@ build_rootfs() {
chmod a+rX ${rootfs_dir}/etc/rpm
echo "%_install_langs en_US" > ${rootfs_dir}/etc/rpm/macros.image-language-conf
echo ${repo_info}
dnf ${repo_info} --disablerepo="*" --installroot=${rootfs_dir}/ install -y dnf --nogpgcheck --forcearch ${rootfs_arch}
dnf ${repo_info} --disablerepo="*" --installroot=${rootfs_dir}/ install -y dnf yum --nogpgcheck --forcearch ${rootfs_arch}
cp -L /etc/resolv.conf ${rootfs_dir}/etc/resolv.conf