tylert / packer-build

Packer Automated VM Image and Vagrant Box Builds

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Xenial builds: get past the postfix config prompt

tylert opened this issue · comments

At the moment, the latest xenial builds prompt for postfix configuration during the install. Need to get past this step.

Find out if this still happens with "this week's" ubuntu installer image.

Postfix didn't appear to prevent the install from finishing when I built using your boot stanza earlier this week and the boxcutter update scripts.

I suspect it's related to the fact that the preseed file is a hybrid of the official canonical junk + stuff I added. The fix is probably to simply remove the canonical stuff--making the ubuntu preseed files look more like the debian ones.

Ah yeah, if you selected a default recipe that includes smtp or some other
software that requires postfix to email (as root) that wasn't previously
installed. I'll see if I can find our debconf answers file to see how we
answered this on our systems when mysql or something required postfix to be
configured.

On Thu, Mar 3, 2016 at 4:22 PM, Tyler Tidman notifications@github.com
wrote:

I suspect it's related to the fact that the preseed file is a hybrid of
the official canonical junk + stuff I added. The fix is probably to simply
remove the canonical stuff--making the ubuntu preseed files look more like
the debian ones.


Reply to this email directly or view it on GitHub
#9 (comment).

Yup. Probably not worth bothering with the hack unless you feel very strongly that having preseed files that look kinda like ubuntu is important (I always disliked having undocumented junk in the preseed files). I am fairly certain the fix can be not too ugly but still work.

When I next have some time, I plan to remove the top parts of these ubuntu preseed files and confirm they can be tricked into working correctly. That is, unless you wish to give it a go first.

(Geez, I really should bodge together a proper build server for these someday. Hosting pre-built images is also one of my longer-term goals for these.)

Fixed in master.