【发布时间】:2021-06-19 11:57:41
【问题描述】:
如何从ks.cfg文件kickstart在RHEL 8上从remi的repo安装php rpm?
我尝试使用上面的文件,但在安装过程中失败并出现错误
#version=RHEL8
bootloader --location=mbr --append="rhgb quiet crashkernel=auto"
zerombr
clearpart --all --initlabel
autopart
# Use graphical install
graphical
# Use CDROM installation media
cdrom
# Keyboard layouts
keyboard --vckeymap=fr-oss --xlayouts='fr (oss)'
# System language
lang fr_FR.UTF-8
# Network information
network --device=link --onboot=yes --hostname=computer --bootproto=static --ip=192.168.1.151 --netmask=255.255.255.0 --activate
# Add local Repositories
repo --name="BaseOS" --baseurl=file:///run/install/repo/BaseOS
repo --name="AppStream" --baseurl=file:///run/install/repo/AppStream
repo --name="Ansible29" --baseurl=file:///run/install/repo/Ansible29
repo --name="Yarn" --baseurl=file:///run/install/repo/Yarn
repo --name="Epel" --baseurl=file:///run/install/repo/Epel
repo --name="Remi" --baseurl=file:///run/install/repo/Remi
# Root password
rootpw $1$Hvsdfsdf1tXYdfdsfsdfsfec$qtWxFDzzBsfdfdfs2Xxnn.rfwZzX0 --iscrypted
# administrateur user
user --name=administrateur --iscrypted --password=$1$Hv1tXYec$qtfdgdfWxFDzzB2dsdfdgdXxnn.rfwZzX0
auth --passalgo=sha512 --useshadow
# X Window System configuration information
xconfig --startxonboot
# Run the Setup Agent on first boot
firstboot --disable
%pre --interpreter=/usr/bin/bash --log=/var/log/pre-installation-anaconda.log
%end
# Reboot auto after install
reboot
# SeLinux activation
selinux --disabled
# Intended system purpose
syspurpose --sla="Premium" --usage="Production"
# System timezone
timezone Europe/Paris --isUtc --nontp
module --name=php --stream=7.2 --disable
module --name=php --stream=remi-7.2
%packages --excludedocs
@^minimal-environment
@base-x
@GNOME
php
%end
%addon com_redhat_kdump --disable
%end
%post --interpreter=/usr/bin/bash --log=/var/log/post-installation-anaconda.log
%end
%anaconda
pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty
pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok
pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty
%end
但在 anaconda 组或模块 php:remi-7.2 中未找到:§
它不依赖于 rhel 版本而不是 php 版本
也许我错过了其他东西
【问题讨论】:
-
不知道 /run/install/repo/Remi 的内容是什么?但是对于模块,您需要“remi-modular”和“remi-safe”(就像您需要 BaseOS 和 AppStream 进行分发一样)
-
我找到了正确的解决方案,我需要简单地使用 EPEL 的模块化 repo 而不是标准
标签: php module rhel8 kickstarter