~milner/cloud-init/protect-from-bad-part-handlers

Viewing all changes in revision 490.

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.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: