Skip to content
This repository

Chef run outputs `stdin: not a tty` when first starts on lucid64 #339

Merged
merged 1 commit into from over 1 year ago

3 participants

Patrick Connolly Patrick Debois M Parker
Patrick Connolly
patcon commented

Solved by @mparker17 in myplanetdigital/vagrant-ariadne#14

Relevant:
http://tech.karbassi.com/2011/11/09/stdin-is-not-a-tty/

Going to submit a PR for lucid64, but not currently testing other lucid platforms which probably experience something similar.

Cheers!

Patrick Connolly patcon referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
Patrick Connolly patcon referenced this pull request from a commit in myplanetdigital/vagrant-ariadne
Patrick Connolly Fixes GH-14: Suppress confusing chef run output until jedi4ever/veewe…
…e#339 is accepted and lucid64 rebuilt.
0d8d640
Patrick Debois jedi4ever merged commit 358c392 into from
Patrick Debois jedi4ever closed this
Pete Cheslock petecheslock referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 2 authors.

Jul 19, 2012
M Parker Prevents `stdin: not a tty` output during chef run on lucid64. efeff87
This page is out of date. Refresh to see the latest.
9  templates/ubuntu-10.04.4-server-amd64/postinstall.sh
@@ -58,6 +58,15 @@ rm -rf rubygems-1.8.17*
58 58
 # Ruby, RubyGems, and Chef/Puppet are visible
59 59
 echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/vagrantruby.sh
60 60
 
  61
+# Need conditionals around `mesg n` so that Chef doesn't throw
  62
+# `stdin: not a tty`
  63
+sed -i '$d' /root/.profile
  64
+cat << 'EOH' >> /root/.profile
  65
+if `tty -s`; then
  66
+  mesg n
  67
+fi
  68
+EOH
  69
+
61 70
 # Installing vagrant keys
62 71
 mkdir /home/vagrant/.ssh
63 72
 chmod 700 /home/vagrant/.ssh
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.