public inbox for linux-m68k@lists.linux-m68k.org
 help / color / mirror / Atom feed
* CONFIG_DEVTMPFS_MOUNT
@ 2015-01-18 11:50 Geert Uytterhoeven
  2015-01-18 12:07 ` CONFIG_DEVTMPFS_MOUNT Thorsten Glaser
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Geert Uytterhoeven @ 2015-01-18 11:50 UTC (permalink / raw)
  To: Thorsten Glaser; +Cc: Stefan Niestegge, Debian m68k, Linux/m68k

Hi Thorsten,

While init on Beetle's system complained about not being able to open
tty* with CONFIG_DEVTMPFS_MOUNT disabled, enabling CONFIG_DEVTMPFS_MOUNT
broke remote login using ssh on my ARAnyM:

$ ssh atari
PTY allocation request failed on channel 0
stdin: is not a tty

(hang)

Scp still works, as it doesn't need a pty.

IIRC, you logged in succesfully on his machine using ssh?

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: CONFIG_DEVTMPFS_MOUNT
  2015-01-18 11:50 CONFIG_DEVTMPFS_MOUNT Geert Uytterhoeven
@ 2015-01-18 12:07 ` Thorsten Glaser
  2015-01-18 20:52   ` CONFIG_DEVTMPFS_MOUNT Michael Schmitz
  2015-01-25 10:34   ` CONFIG_DEVTMPFS_MOUNT Geert Uytterhoeven
  2015-01-18 12:33 ` CONFIG_DEVTMPFS_MOUNT Andreas Schwab
  2015-01-25 11:00 ` CONFIG_DEVTMPFS_MOUNT Geert Uytterhoeven
  2 siblings, 2 replies; 8+ messages in thread
From: Thorsten Glaser @ 2015-01-18 12:07 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Stefan Niestegge, Debian m68k, Linux/m68k

Geert Uytterhoeven dixit:

>While init on Beetle's system complained about not being able to open
>tty* with CONFIG_DEVTMPFS_MOUNT disabled, enabling CONFIG_DEVTMPFS_MOUNT
>broke remote login using ssh on my ARAnyM:

Hm, interesting.

If you do not run udev, you may need the following lines in /etc/rc.local:

(test -e /dev/fd || ln -s /proc/self/fd /dev/fd || :)
(test -e /dev/stdin || ln -s /proc/self/fd/0 /dev/stdin || :)
(test -e /dev/stdout || ln -s /proc/self/fd/1 /dev/stdout || :)
(test -e /dev/stderr || ln -s /proc/self/fd/2 /dev/stderr || :)

Otherwise… redo with ssh -vvv and possibly log in locally to it, kill
the ssh service, and run it in a one-shot manually:

/usr/sbin/sshd -ddde 2>&1 | tee log

bye,
//mirabilos
-- 
<igli> exceptions: a truly awful implementation of quite a nice idea.
<igli> just about the worst way you could do something like that, afaic.
<igli> it's like anti-design.  <mirabilos> that too… may I quote you on that?
<igli> sure, tho i doubt anyone will listen ;)

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

* Re: CONFIG_DEVTMPFS_MOUNT
  2015-01-18 11:50 CONFIG_DEVTMPFS_MOUNT Geert Uytterhoeven
  2015-01-18 12:07 ` CONFIG_DEVTMPFS_MOUNT Thorsten Glaser
@ 2015-01-18 12:33 ` Andreas Schwab
  2015-01-25 10:33   ` CONFIG_DEVTMPFS_MOUNT Geert Uytterhoeven
  2015-01-25 11:00 ` CONFIG_DEVTMPFS_MOUNT Geert Uytterhoeven
  2 siblings, 1 reply; 8+ messages in thread
From: Andreas Schwab @ 2015-01-18 12:33 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Thorsten Glaser, Stefan Niestegge, Debian m68k, Linux/m68k

Geert Uytterhoeven <geert@linux-m68k.org> writes:

> While init on Beetle's system complained about not being able to open
> tty* with CONFIG_DEVTMPFS_MOUNT disabled, enabling CONFIG_DEVTMPFS_MOUNT
> broke remote login using ssh on my ARAnyM:
>
> $ ssh atari
> PTY allocation request failed on channel 0
> stdin: is not a tty

What are the available ptys and is devpts properly mounted?

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

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

* Re: CONFIG_DEVTMPFS_MOUNT
  2015-01-18 12:07 ` CONFIG_DEVTMPFS_MOUNT Thorsten Glaser
@ 2015-01-18 20:52   ` Michael Schmitz
  2015-01-25 10:34   ` CONFIG_DEVTMPFS_MOUNT Geert Uytterhoeven
  1 sibling, 0 replies; 8+ messages in thread
From: Michael Schmitz @ 2015-01-18 20:52 UTC (permalink / raw)
  To: Thorsten Glaser
  Cc: Geert Uytterhoeven, Stefan Niestegge, Debian m68k, Linux/m68k

This is what I have used since - called from rcS.d as S37mountdevpts.sh :


#
# mountdevpts.sh    Mount devpts filesystem.
#
# Version:    @(#)mountall.sh  2.85-23  29-Jul-2004  miquels@cistron.nl
#

#
# We might have mounted something over /dev, see if /dev/pts is there.
#
if [ ! -d /dev/pts ]
then
    rm -f /dev/pts
    mkdir /dev/pts
fi

#
# Mount local file systems in /etc/fstab.
#
[ "$VERBOSE" != no ] && echo "Mounting devpts filesystem..."
mount -av -t devpts 2>&1 |
    egrep -v '(already|nothing was) mounted'


: exit 0

Typos and other faults mine. Runs on a dark ages version of Debian
(3.1 with locl mods).

Cheers,

  Michael



On Mon, Jan 19, 2015 at 1:07 AM, Thorsten Glaser <tg@mirbsd.de> wrote:
> Geert Uytterhoeven dixit:
>
>>While init on Beetle's system complained about not being able to open
>>tty* with CONFIG_DEVTMPFS_MOUNT disabled, enabling CONFIG_DEVTMPFS_MOUNT
>>broke remote login using ssh on my ARAnyM:
>
> Hm, interesting.
>
> If you do not run udev, you may need the following lines in /etc/rc.local:
>
> (test -e /dev/fd || ln -s /proc/self/fd /dev/fd || :)
> (test -e /dev/stdin || ln -s /proc/self/fd/0 /dev/stdin || :)
> (test -e /dev/stdout || ln -s /proc/self/fd/1 /dev/stdout || :)
> (test -e /dev/stderr || ln -s /proc/self/fd/2 /dev/stderr || :)
>
> Otherwise… redo with ssh -vvv and possibly log in locally to it, kill
> the ssh service, and run it in a one-shot manually:
>
> /usr/sbin/sshd -ddde 2>&1 | tee log
>
> bye,
> //mirabilos
> --
> <igli> exceptions: a truly awful implementation of quite a nice idea.
> <igli> just about the worst way you could do something like that, afaic.
> <igli> it's like anti-design.  <mirabilos> that too… may I quote you on that?
> <igli> sure, tho i doubt anyone will listen ;)
> --
> To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: CONFIG_DEVTMPFS_MOUNT
  2015-01-18 12:33 ` CONFIG_DEVTMPFS_MOUNT Andreas Schwab
@ 2015-01-25 10:33   ` Geert Uytterhoeven
  0 siblings, 0 replies; 8+ messages in thread
From: Geert Uytterhoeven @ 2015-01-25 10:33 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: Thorsten Glaser, Stefan Niestegge, Debian m68k, Linux/m68k

On Sun, Jan 18, 2015 at 1:33 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> Geert Uytterhoeven <geert@linux-m68k.org> writes:
>> While init on Beetle's system complained about not being able to open
>> tty* with CONFIG_DEVTMPFS_MOUNT disabled, enabling CONFIG_DEVTMPFS_MOUNT
>> broke remote login using ssh on my ARAnyM:
>>
>> $ ssh atari
>> PTY allocation request failed on channel 0
>> stdin: is not a tty
>
> What are the available ptys and is devpts properly mounted?

None.

The ancient /etc/init.d/mountdevsubfs.h looked for devfs instead of devtmpfs.
After fixing that, it works again.

Thanks!

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: CONFIG_DEVTMPFS_MOUNT
  2015-01-18 12:07 ` CONFIG_DEVTMPFS_MOUNT Thorsten Glaser
  2015-01-18 20:52   ` CONFIG_DEVTMPFS_MOUNT Michael Schmitz
@ 2015-01-25 10:34   ` Geert Uytterhoeven
  2015-01-25 10:54     ` CONFIG_DEVTMPFS_MOUNT Andreas Schwab
  1 sibling, 1 reply; 8+ messages in thread
From: Geert Uytterhoeven @ 2015-01-25 10:34 UTC (permalink / raw)
  To: Thorsten Glaser; +Cc: Stefan Niestegge, Debian m68k, Linux/m68k

On Sun, Jan 18, 2015 at 1:07 PM, Thorsten Glaser <tg@mirbsd.de> wrote:
> Geert Uytterhoeven dixit:
>
>>While init on Beetle's system complained about not being able to open
>>tty* with CONFIG_DEVTMPFS_MOUNT disabled, enabling CONFIG_DEVTMPFS_MOUNT
>>broke remote login using ssh on my ARAnyM:
>
> Hm, interesting.
>
> If you do not run udev, you may need the following lines in /etc/rc.local:
>
> (test -e /dev/fd || ln -s /proc/self/fd /dev/fd || :)
> (test -e /dev/stdin || ln -s /proc/self/fd/0 /dev/stdin || :)
> (test -e /dev/stdout || ln -s /proc/self/fd/1 /dev/stdout || :)
> (test -e /dev/stderr || ln -s /proc/self/fd/2 /dev/stderr || :)

I don't have these, but the system doesn't seem to miss them ;-)

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: CONFIG_DEVTMPFS_MOUNT
  2015-01-25 10:34   ` CONFIG_DEVTMPFS_MOUNT Geert Uytterhoeven
@ 2015-01-25 10:54     ` Andreas Schwab
  0 siblings, 0 replies; 8+ messages in thread
From: Andreas Schwab @ 2015-01-25 10:54 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Thorsten Glaser, Stefan Niestegge, Debian m68k, Linux/m68k

Geert Uytterhoeven <geert@linux-m68k.org> writes:

> On Sun, Jan 18, 2015 at 1:07 PM, Thorsten Glaser <tg@mirbsd.de> wrote:
>> Geert Uytterhoeven dixit:
>>
>>>While init on Beetle's system complained about not being able to open
>>>tty* with CONFIG_DEVTMPFS_MOUNT disabled, enabling CONFIG_DEVTMPFS_MOUNT
>>>broke remote login using ssh on my ARAnyM:
>>
>> Hm, interesting.
>>
>> If you do not run udev, you may need the following lines in /etc/rc.local:
>>
>> (test -e /dev/fd || ln -s /proc/self/fd /dev/fd || :)
>> (test -e /dev/stdin || ln -s /proc/self/fd/0 /dev/stdin || :)
>> (test -e /dev/stdout || ln -s /proc/self/fd/1 /dev/stdout || :)
>> (test -e /dev/stderr || ln -s /proc/self/fd/2 /dev/stderr || :)
>
> I don't have these, but the system doesn't seem to miss them ;-)

Unless you are using process substitution in bash.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

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

* Re: CONFIG_DEVTMPFS_MOUNT
  2015-01-18 11:50 CONFIG_DEVTMPFS_MOUNT Geert Uytterhoeven
  2015-01-18 12:07 ` CONFIG_DEVTMPFS_MOUNT Thorsten Glaser
  2015-01-18 12:33 ` CONFIG_DEVTMPFS_MOUNT Andreas Schwab
@ 2015-01-25 11:00 ` Geert Uytterhoeven
  2 siblings, 0 replies; 8+ messages in thread
From: Geert Uytterhoeven @ 2015-01-25 11:00 UTC (permalink / raw)
  To: Thorsten Glaser; +Cc: Stefan Niestegge, Debian m68k, Linux/m68k

On Sun, Jan 18, 2015 at 12:50 PM, Geert Uytterhoeven
<geert@linux-m68k.org> wrote:
> While init on Beetle's system complained about not being able to open
> tty* with CONFIG_DEVTMPFS_MOUNT disabled, enabling CONFIG_DEVTMPFS_MOUNT
> broke remote login using ssh on my ARAnyM:

FWIW, CONFIG_DEVTMPFS_MOUNT is not set in Debian's
config-3.16.0-4-m68k.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

end of thread, other threads:[~2015-01-25 11:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-18 11:50 CONFIG_DEVTMPFS_MOUNT Geert Uytterhoeven
2015-01-18 12:07 ` CONFIG_DEVTMPFS_MOUNT Thorsten Glaser
2015-01-18 20:52   ` CONFIG_DEVTMPFS_MOUNT Michael Schmitz
2015-01-25 10:34   ` CONFIG_DEVTMPFS_MOUNT Geert Uytterhoeven
2015-01-25 10:54     ` CONFIG_DEVTMPFS_MOUNT Andreas Schwab
2015-01-18 12:33 ` CONFIG_DEVTMPFS_MOUNT Andreas Schwab
2015-01-25 10:33   ` CONFIG_DEVTMPFS_MOUNT Geert Uytterhoeven
2015-01-25 11:00 ` CONFIG_DEVTMPFS_MOUNT Geert Uytterhoeven

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