mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* initrd missing TTY
@ 2004-09-01 13:07 harry_b
       [not found] ` <Pine.LNX.4.58.0409010749510.6483@rio.clgy.hardrock.org>
  0 siblings, 1 reply; 3+ messages in thread
From: harry_b @ 2004-09-01 13:07 UTC (permalink / raw)
  To: linux-kernel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there,

I am not sure where to ask this question but I hope this is the right place.

I am trying to setup an encrypted root partition where the key is stored 
gpg-encrypted on an USB memorystick. So far everything works quite nicely 
but I fail to get a TTY working in the initial RAM disk.

All I get is gpg complaining:
gpg: cannot open '/dev/tty': No such device or address

Any idea what's necessary to get a TTY within the RAM disk? Or is there any 
other way to pass a passphrase to gpg without displaying it on the screen?
(yes, I know about the --no-tty and --passphrase-fd options but when I use 
/dev/console the passphrase is visible)

Any ideas or hints?

TIA,
Harry

- --

1024D/40F14012 18F3 736A 4080 303C E61E  2E72 7E05 1F6E 40F1 4012

- -----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GIT/S dx s: a C++ ULS++++$ P+++ L+++$ !E W++ N+ o? K? !w !O !M
V PS+ PE Y? PGP+++ t+ 5-- X+ R+ !tv b++ DI++ D+ G e* h r++ y++
- ------END GEEK CODE BLOCK------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBNcmBfgUfbkDxQBIRAogjAJ9mZhb7zJ+g9EZpvOAwicrKaH8KnwCePw7S
ub5Y1xEeAqwTQTGFF3tgYt8=
=MUFf
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: initrd missing TTY
       [not found] ` <Pine.LNX.4.58.0409010749510.6483@rio.clgy.hardrock.org>
@ 2004-09-01 13:59   ` harry_b
  2004-09-07 15:39     ` Herbert Poetzl
  0 siblings, 1 reply; 3+ messages in thread
From: harry_b @ 2004-09-01 13:59 UTC (permalink / raw)
  To: James Bourne; +Cc: linux-kernel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

- --On Wednesday, September 01, 2004 07:53:13 -0600 James Bourne 
<jbourne@hardrock.org> wrote:

>> I am not sure where to ask this question but I hope this is the right
>> place.
>>
>> I am trying to setup an encrypted root partition where the key is stored
>> gpg-encrypted on an USB memorystick. So far everything works quite
>> nicely  but I fail to get a TTY working in the initial RAM disk.
>>
>> All I get is gpg complaining:
>> gpg: cannot open '/dev/tty': No such device or address
>>
>> Any idea what's necessary to get a TTY within the RAM disk? Or is there
>> any  other way to pass a passphrase to gpg without displaying it on the
>> screen? (yes, I know about the --no-tty and --passphrase-fd options but
>> when I use  /dev/console the passphrase is visible)
>
> make sure /dev/tty exists on your initrd image.  You can created this by
> mounting your initrd image, changing to the dev directory on that image
> and running mknod -m 644 tty c 5 0.

I have all devices available. Right now I have udev running but I also 
tried a fully populated static /dev directory.

My current tty looks quite normal like
crw-rw-rw- 1 0 0 5, 0 Sep 1 12:10 /dev/tty
and tty1, tty2 have
crw-rw-rw- 1 0 0 4, 1 Sep 1 12:10 /dev/tty1
crw-rw-rw- 1 0 0 4, 2 Sep 1 12:10 /dev/tty2
...

Harry

- --

1024D/40F14012 18F3 736A 4080 303C E61E  2E72 7E05 1F6E 40F1 4012

- -----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GIT/S dx s: a C++ ULS++++$ P+++ L+++$ !E W++ N+ o? K? !w !O !M
V PS+ PE Y? PGP+++ t+ 5-- X+ R+ !tv b++ DI++ D+ G e* h r++ y++
- ------END GEEK CODE BLOCK------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBNdXVfgUfbkDxQBIRApz2AKCfReZz9d7a7XWKXqYTVG25K4pShQCfQ6jT
ndXd09GQGN+yLNp1sizUotM=
=QK72
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: initrd missing TTY
  2004-09-01 13:59   ` harry_b
@ 2004-09-07 15:39     ` Herbert Poetzl
  0 siblings, 0 replies; 3+ messages in thread
From: Herbert Poetzl @ 2004-09-07 15:39 UTC (permalink / raw)
  To: harry_b; +Cc: James Bourne, linux-kernel

On Wed, Sep 01, 2004 at 03:59:49PM +0200, harry_b@mm.st wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi,
> 
> - --On Wednesday, September 01, 2004 07:53:13 -0600 James Bourne 
> <jbourne@hardrock.org> wrote:
> 
> >> I am not sure where to ask this question but I hope this is the right
> >> place.
> >>
> >> I am trying to setup an encrypted root partition where the key is stored
> >> gpg-encrypted on an USB memorystick. So far everything works quite
> >> nicely  but I fail to get a TTY working in the initial RAM disk.
> >>
> >> All I get is gpg complaining:
> >> gpg: cannot open '/dev/tty': No such device or address

sounds like the tty driver is either not loaded or
not compiled in at all ... but maybe I'm completely 
wrong here ...

HTH,
Herbert

> >> Any idea what's necessary to get a TTY within the RAM disk? Or is there
> >> any  other way to pass a passphrase to gpg without displaying it on the
> >> screen? (yes, I know about the --no-tty and --passphrase-fd options but
> >> when I use  /dev/console the passphrase is visible)
> >
> > make sure /dev/tty exists on your initrd image.  You can created this by
> > mounting your initrd image, changing to the dev directory on that image
> > and running mknod -m 644 tty c 5 0.
> 
> I have all devices available. Right now I have udev running but I also 
> tried a fully populated static /dev directory.
> 
> My current tty looks quite normal like
> crw-rw-rw- 1 0 0 5, 0 Sep 1 12:10 /dev/tty
> and tty1, tty2 have
> crw-rw-rw- 1 0 0 4, 1 Sep 1 12:10 /dev/tty1
> crw-rw-rw- 1 0 0 4, 2 Sep 1 12:10 /dev/tty2
> ...
> 
> Harry
> 
> - --
> 
> 1024D/40F14012 18F3 736A 4080 303C E61E  2E72 7E05 1F6E 40F1 4012
> 
> - -----BEGIN GEEK CODE BLOCK-----
> Version: 3.12
> GIT/S dx s: a C++ ULS++++$ P+++ L+++$ !E W++ N+ o? K? !w !O !M
> V PS+ PE Y? PGP+++ t+ 5-- X+ R+ !tv b++ DI++ D+ G e* h r++ y++
> - ------END GEEK CODE BLOCK------
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.5 (GNU/Linux)
> 
> iD8DBQFBNdXVfgUfbkDxQBIRApz2AKCfReZz9d7a7XWKXqYTVG25K4pShQCfQ6jT
> ndXd09GQGN+yLNp1sizUotM=
> =QK72
> -----END PGP SIGNATURE-----
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-09-07 15:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-01 13:07 initrd missing TTY harry_b
     [not found] ` <Pine.LNX.4.58.0409010749510.6483@rio.clgy.hardrock.org>
2004-09-01 13:59   ` harry_b
2004-09-07 15:39     ` Herbert Poetzl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®