From: Rob Landley <rob@landley.net>
To: Henrik Nordstrom <uml@hno.marasystems.com>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] Any way to give /dev/console a controlling TTY?
Date: Sun, 25 Sep 2005 10:34:44 -0500 [thread overview]
Message-ID: <200509251034.44965.rob@landley.net> (raw)
In-Reply-To: <Pine.LNX.4.61.0509251423150.12255@filer.marasystems.com>
On Sunday 25 September 2005 07:49, Henrik Nordstrom wrote:
> The ctty program mentioned has only been truly tested from inittab. Does
> not seem to work proper when used as init= so it's probably missing some
> process group thing or similar. Did work when executed interactively from
> a init=/bin/sh shell however.
I tried it. I did the following:
./linux rootfstype=hostfs rw init=/bin/sh LD_ASSUME_KERNEL=2.4.1
#/path/to/ctty /bin/sh
And although it did give me a nested shell invocation, it made no difference
that I could see as far as ctrl-c went.
> To be honest it skips quite many steps in
> the terminal initialization compared to how getty etc opens their
> terminal.
It's obviously a quick hack or it wouldn't segfault when you ran it with no
arguments. I don't hold that against it.
The thing is, all the various invocation methods you've mentioned are attempts
to give a controlling tty to something _other_ than /dev/console. The
various virtual terminals, for instance. I haven't figured out how to get
those to attach to fd:0,fd:1 so that I have ctrl-c working on stdio of the
UML instance, so getting ctrl-c working on them doesn't help me. (I could
just use init.)
I can fiddle around and create an initramfs to do all sorts of complicated
things if necessary, and probably will, but it would be nice if there was an
easy solution...
> Regards
> Henrik
Rob
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2005-09-25 15:34 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-23 16:35 [uml-devel] Any way to give /dev/console a controlling TTY? Rob Landley
2005-09-23 17:50 ` Blaisorblade
2005-09-23 19:08 ` Rob Landley
2005-09-24 14:09 ` Blaisorblade
2005-09-25 12:49 ` Henrik Nordstrom
2005-09-25 15:34 ` Rob Landley [this message]
2005-09-23 18:31 ` Rob Landley
2005-09-23 18:56 ` Henrik Nordstrom
2005-09-23 19:08 ` Blaisorblade
2005-09-23 20:31 ` Henrik Nordstrom
2005-09-24 14:03 ` Blaisorblade
2005-09-24 17:37 ` Rob Landley
2005-09-24 23:14 ` Henrik Nordstrom
2005-09-25 0:10 ` Rob Landley
2005-09-24 14:43 ` Rob Landley
2005-09-23 18:47 ` Henrik Nordstrom
2005-09-23 18:53 ` Blaisorblade
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200509251034.44965.rob@landley.net \
--to=rob@landley.net \
--cc=uml@hno.marasystems.com \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox