theforeman/community-templates — pull request #64 by mmoll (2014-03-12 22:07:22+00:00)
Title: change SUSE from postinst to chroot scripts

@mattiasgiese please ACK, these changes are based on your pastebin, I tested this with SLES 11 SP3.

"postinst" for SUSE means, these scripts get executed after the first
reboot of the host. If a host is configured to boot from PXE before
HDD, it will go into an install loop, because the built status is never
being set in foreman.

To get everything working, resolv.conf has to be copied into the
installed system image and removed before the host is booting the first
time, otherwise SUSEConfig (netconf) will not touch /etc/resolv.conf,
which is leading NTP configuration into an error.

While here, replace wget with curl (included in SUSE's base system) and
remove debug parameters, as debug=true was made default long time ago.