# HG changeset patch # User Eric Joseph-Alexandre # Date 1301524097 -7200 # Node ID 3a7b7a59bdae8a50e7c6f2eec3e5a4ccaa0f9fec # Parent c1fda2da8fb12e18da4675c84dd275062092d3ed open-iscsi: improve receipt diff -r c1fda2da8fb1 -r 3a7b7a59bdae open-iscsi/receipt --- a/open-iscsi/receipt Wed Mar 30 16:18:14 2011 +0000 +++ b/open-iscsi/receipt Thu Mar 31 00:28:17 2011 +0200 @@ -29,3 +29,10 @@ cp -a $_pkg/sbin $fs } +post_install() +{ + echo "Processing post-install commands..." + if [ ! -f $1/etc/iscsi/initiatorname.iscsi ]; then + echo "InitiatorName=$($1/sbin/iscsi-iname)" > $1/etc/iscsi/initiatorname.iscsi + fi +}