Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 214786 - clean api for accessing stdin from init scripts needed
Summary: clean api for accessing stdin from init scripts needed
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-25 20:22 UTC by SpanKY
Modified: 2008-03-30 02:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
test input (test,133 bytes, text/plain)
2008-03-25 20:49 UTC, Roy Marples
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2008-03-25 20:22:44 UTC
currently cryptsetup is broken with openrc as it performs black magic to open stdin/stdout/stderr before executing gpg ... this magic appears to break

we need a function or something that code can execute:
rc_stdin_obtain
<app does what it needs; in this case executes gpg for user password input>
rc_stdin_release
Comment 1 Roy Marples 2008-03-25 20:49:58 UTC
Created attachment 147301 [details]
test input

This script reads user input. It works in the boot and default runlevels during a normal rc, a full system boot and a single run.

Maybe cryptsetup is doing it's own voodoo on stdin? Caveat - I have console=tty1 on the kernel commandline which may affect this.
Comment 2 SpanKY gentoo-dev 2008-03-25 20:51:44 UTC
check out 1.0.6-dm-crypt-start.sh in the files/ dir of cryptsetup ... this was working with baselayout-2.x and baselayout-1.x, but the fds it has hard coded may have changed ...
Comment 3 Roy Marples 2008-03-26 07:55:49 UTC
It's forcing input from /dev/console, which could be the cause. I don't have the time right now to setup a test env to verify.
Comment 4 SpanKY gentoo-dev 2008-03-30 02:43:43 UTC
looks like default pinentry program is broken ... it doesnt fallback to curses properly