我正在尝试使用kickstart并使用GUI安装RHEL 7.2系统。在我的ks.cfg文件中,我指定了这些选项以实现在启用X的情况下启动的系统。
%packages --ignoremissing
@Server with GUI
@GNOME Desktop
@X Window System
@Development and Creative Workstation
@Graphical Administration Tools
@Fonts
%end
%post
/bin/systemctl set-default graphical.target
%end
X的软件包选择来自此处的RHEL页面:https : //access.redhat.com/solutions/5238
出于某种原因,我的系统启动到纯文本模式。但是,如果我检查目标,则将其设置为“图形目标”。日志中没有提及任何问题。当我确定执行“ yum grouplist”时,这些软件包肯定不会显示为“ Installed”。我首先想到的是,它可能试图将其从Internet下拉并失败,因为它不是订阅的系统,但应该从系统中拉出。 ftp / pxe服务器上的本地共享。ksvalidator工具没有发现我的kickstart文件有问题。我很困惑
解决方案 -
似乎kickstart / anaconda不喜欢大写和空格。我更改为下面的此配置,它可以正常工作。如果大小写或语法有问题,则不确定为什么ksvalidator不会继续这样做。无论如何,问题解决了。还有其他人。
%packages --ignoremissing
@^graphical-server-environment
@base
@core
@gnome-desktop
@x-window-system
@development-and-creative-workstation
@graphical-administration-tools
@fonts
@server-with-gui
%end
上面生成的配置在新安装的系统的/ root中生成anaconda-ks.cfg文件,如下所示。
%packages --ignoremissing
@^graphical-server-environment
@base
@core
@desktop-debugging
@development-and-creative-workstation
@dial-up
@fonts
@gnome-desktop
@graphical-administration-tools
@guest-agents
@guest-desktop-agents
@input-methods
@internet-browser
@multimedia
@print-client
@server-with-gui
@x-window-system
@x11
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句