act-environments icon indicating copy to clipboard operation
act-environments copied to clipboard

Packer script halts due to systemd prompt

Open jclem opened this issue 5 years ago • 5 comments

Hey! 👋 Thanks for working on this tool, it's awesome!

Partway through packer build -var github_feed_token=XXX images/linux/ubuntu1804.json, I get this prompt from Docker about systemd that expects a TTY:

    docker: Setting up systemd (237-3ubuntu10.39) ...
    docker:
    docker: Configuration file '/etc/systemd/system.conf'
    docker:  ==> File on system created by you or by a script.
    docker:  ==> File also in package provided by package maintainer.
    docker:    What would you like to do about it ?  Your options are:
    docker:     Y or I  : install the package maintainer's version
    docker:     N or O  : keep your currently-installed version
    docker:       D     : show the differences between the versions
    docker:       Z     : start a shell to examine the situation
    docker:  The default action is to keep your current version.

Is there a workaround for this?

jclem avatar Feb 26 '20 14:02 jclem

Weird. What version of packer are you using? What OS are you running packer from?

cplee avatar Feb 26 '20 19:02 cplee

I'm also facing this issue.

Packer version below

$ packer --version
1.5.4

piersy avatar Mar 09 '20 11:03 piersy

@cplee I'm going to follow up on this later today. My apologizes for not providing that info up front! I should know better 🙄

Update I'm running with packer 1.5.4 on macOS 10.15.3.

jclem avatar Mar 09 '20 14:03 jclem

@cplee I tried the following versions I'm running Ubuntu 18.04.4

1.2.0: Fails with the following error

Failed to parse template: 1 error(s) occurred:

* Unknown root level key in template: 'sensitive-variables'

The versions below fail because of the prompt. 1.3.0 1.4.0 1.5.0 1.5.4

@jclem

piersy avatar Mar 10 '20 09:03 piersy

Weird. What version of packer are you using? What OS are you running packer from?

Android

Dennisdima avatar Mar 20 '20 01:03 Dennisdima