-
Committer:
Scott Moser
-
Date:
2011-12-19 22:01:07 UTC
-
mto:
This revision was merged to the branch mainline in
revision
490.
-
Revision ID:
smoser@ubuntu.com-20111219220107-yh08u0w18xmscnum
make stdin read from /dev/null for all cloud-init programs (LP: #903993)
the cloud-init programs are never intended to run interactively.
Some programs were being run via subprocess, and would notice that their
input was attached to a terminal (/dev/console). As a result, they
they would try to prompt the user for input (apt-add-repository)
This change simply re-opens standard input as /dev/null so any
subprocesses will not end up blocking on input.