]> git.ozlabs.org Git - petitboot/commit
lib/process: Add option to pipe to process stdin
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Thu, 14 Feb 2019 23:39:05 +0000 (10:39 +1100)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 5 Mar 2019 20:54:10 +0000 (09:54 +1300)
commitba8144f917f5603e507e9c72aed4ae3257c6b0ce
treee4bfeae938d212fc0bded4172776f1d61fd3a3be
parentdf1a234c15fbe215b0dd0d75c760f47c2dab411f
lib/process: Add option to pipe to process stdin

If pipe_stdin exists, create a second pipe to write to the child
process's STDIN. This allows Petitboot to pipe information to a process,
for example piping a LUKS password to cryptsetup.

Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
lib/process/process.c
lib/process/process.h