On Fri, Jan 06, 2017 at 11:27:35PM +0900, Fuminobu TAKEYAMA wrote:
武山です
SUSE Studio でイメージを作ったときに使ったかもしれないです
"Run script whenever the appliance boots" に
こんなテンプレートがあります:
いろいろやってみましたが、うまくいく例を見つけました。
こんな記述をするとautoinst 実行後、特定のスクリプトを動かせます。
<firstboot>
true
</firstboot>
<scripts>
<post-scripts config:type="list">
<script>
<debug config:type="boolean">true</debug>
<feedback config:type="boolean">false</feedback>
<filename>demo.sh</filename>
<interpreter>shell</interpreter>
<location><![CDATA[]]></location>
false
<notification>demo</notification>
<param-list config:type="list"/>
<source><![CDATA[#! /bin/sh
echo "hello world"
sleep 100
]]></source>
</script>
</post-scripts>
</scripts>
あとでまとめます。
ribbon
--
To unsubscribe, e-mail: opensuse-ja+unsubscribe@opensuse.org
To contact the owner, e-mail: opensuse-ja+owner@opensuse.org