最近,我正在学习如何使用autoyast来通过pxe网络来安装SUSE。我的目标是--
成功地完成了它
获得。
,
http://192.168.95.77/12.4/suse/x86_64/rlwrap-0.43-lp152.3.8.x86_64.rpm rl包装纸>产品_dir> 99 false falseEisn-repo-12.4
然后我用一个新的VM进行了测试--然后我发现这个VM再次成功地安装了Suse12.4,但是没有安装那个rlwrap包,并且在安装中没有发现错误消息。
发布于 2021-12-20 07:58:09
找到解决方案-- autoyast.xml中的autoyast.xml部件可以做到这一点。我是这样写的--
<scripts>
<init-scripts config:type="list">
<script>
<debug config:type="boolean">true</debug>
<feedback config:type="boolean">false</feedback>
<filename>init.sh</filename>
<interpreter>shell</interpreter>
<location><![CDATA[]]></location>
<notification>customer initialization</notification>
<source><![CDATA[
#!/bin/bash
touch /tmp/flag
rpm --import http://192.168.95.77/puppet7/repodata/repomd.xml.key 2>&1 >> /tmp/flag
zypper addrepo -f http://192.168.95.77/puppet7 eisen-repo-puppet7 2>&1 >> /tmp/flag
zypper install -y rlwrap 2>&1 >> /tmp/flag
zypper install -y puppet-agent 2>&1 >> /tmp/flag
]]></source>
</script>
</init-scripts>
</scripts>然后第三方软件包被成功安装。
https://stackoverflow.com/questions/70393969
复制相似问题