shaving the yast
So I wanted to have a play with packer but decided to have a look at autoyast while I am at it.
OpenSuSE 12.3 has a bug [BNC#801878] though that prevent the network and ssh to be started up.
And it seems the
ended up not caring about the package updates (since the vagrant box would be outdated anyway) and instead doing this:
<noscripts>
<chroot-scripts config:type="list">
<noscript>
<!— FIXING BNC#801878 —>
<filename>chroot_bugfixing_801878.sh</filename>
<source><![CDATA[#!/bin/bash
#Fix ag_initscripts according to BNC#801878
sed -i 's/.<strong>(/sbin/runlevel.</strong>)/SYSTEMCTL_OPTIONS="" 1/' /mnt/usr/lib/YaST2/servers_non_y2/ag_initscripts
]]>
</source>
</noscript>
</chroot-scripts>
<postpartitioning-scripts config:type="list">
<noscript>
<filename>ssh_key_installation.sh</filename>
<source><![CDATA[#!/bin/bash
# Evaluate the http server IP PORT to retrieve the ssh key and then set it up
httpServer=$( grep AutoYaST /etc/install.inf | sed 's~.<strong>(http://.</strong>/).*~1~' )
httpUrl="${httpServer}/id_rsa_packer_images.pub"
rootSsh=/mnt/root/.ssh
mkdir -p ${rootSsh}
wget "${httpUrl}" -O ${rootSsh}/authorized_keys
chmod -R og-rwx ${rootSsh}
verpackerSsh=/mnt/home/verpacker/.ssh
mkdir -p ${verpackerSsh}
wget "${httpUrl}" -O ${verpackerSsh}/authorized_keys
chmod -R og-rwx ${verpackerSsh}
chown -R 1000:100 /mnt/home/verpacker
]]>
</source>
</noscript>
</postpartitioning-scripts>
<post-scripts config:type="list">
<noscript>
<filename>post_script_no_network_shutdown.sh</filename>
<source><![CDATA[#!/bin/bash
# preventing the shut down of the network at the end of the installation
sed -i 's~(.*rcnetwork .*stop)~# removed by post_script_no_network_shutdown 1~' /usr/lib/YaST2/startup/Second-Stage/S09-cleanup
]]>
</source>
</noscript>
</post-scripts>
</noscripts>
ok, the ssh-key is for packer and not the network issues.
Packer : ~1 evening autoyast : ~5 evenings
I also decided to become a more sharing person :
https://bitbucket.org/markus_ebenhoeh/packer-opensuse.12.3