Received: from lucy.icvn.de (lucy.icvn.de [185.190.70.70]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id B4FD4781F03 for <~alpine/devel@lists.alpinelinux.org>; Thu, 30 Jan 2020 08:52:06 +0000 (UTC) Received: by lucy.icvn.de (Postfix, from userid 1000) id 8E53D21176; Thu, 30 Jan 2020 08:52:05 +0000 (UTC) Date: Thu, 30 Jan 2020 08:52:05 +0000 From: Nero To: ~alpine/devel@lists.alpinelinux.org Subject: Re: alpine-virt*.iso: i think COM1 port declared in /etc/inittab never used in real life Message-ID: <20200130085205.GA25119@lucy.icvn.de> References: <6901131580367059@myt4-2943a877c094.qloud-c.yandex.net> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wRRV7LY7NUeQGEoC" Content-Disposition: inline In-Reply-To: <6901131580367059@myt4-2943a877c094.qloud-c.yandex.net> User-Agent: Mutt/1.12.1 (2019-06-15) --wRRV7LY7NUeQGEoC Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Thu, Jan 30, 2020 at 09:50:58AM +0300, Kuzin Andrey wrote: > Hello ! >=20 > I use alpine-virt-3.11.3-x86_64.iso version in my VirtualBox projects and= very happy. Thanks for all ! >=20 > But after start the virtual machine file /var/log/messages filling by the= messages: >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Jan 30 06:19:03 localhost daemon.info init: process '/sbin/getty -L 0 tty= S0 vt100' (pid 8193) exited. Scheduling for restart. > Jan 30 06:19:03 localhost daemon.info init: starting pid 8203, tty '/dev/= ttyS0': '/sbin/getty -L 0 ttyS0 vt100' > Jan 30 06:19:03 localhost auth.err getty[8203]: tcgetattr: I/O error^M > Jan 30 06:19:13 localhost daemon.info init: process '/sbin/getty -L 0 tty= S0 vt100' (pid 8203) exited. Scheduling for restart. > Jan 30 06:19:13 localhost daemon.info init: starting pid 8204, tty '/dev/= ttyS0': '/sbin/getty -L 0 ttyS0 vt100' > Jan 30 06:19:13 localhost auth.err getty[8204]: tcgetattr: I/O error^M > Jan 30 06:19:23 localhost daemon.info init: process '/sbin/getty -L 0 tty= S0 vt100' (pid 8204) exited. Scheduling for restart. > Jan 30 06:19:23 localhost daemon.info init: starting pid 8209, tty '/dev/= ttyS0': '/sbin/getty -L 0 ttyS0 vt100' > Jan 30 06:19:23 localhost auth.err getty[8209]: tcgetattr: I/O error^M > Jan 30 06:19:33 localhost daemon.info init: process '/sbin/getty -L 0 tty= S0 vt100' (pid 8209) exited. Scheduling for restart. > Jan 30 06:19:33 localhost daemon.info init: starting pid 8210, tty '/dev/= ttyS0': '/sbin/getty -L 0 ttyS0 vt100' > Jan 30 06:19:33 localhost auth.err getty[8210]: tcgetattr: I/O error^M > Jan 30 06:19:43 localhost daemon.info init: process '/sbin/getty -L 0 tty= S0 vt100' (pid 8210) exited. Scheduling for restart. > Jan 30 06:19:43 localhost daemon.info init: starting pid 8211, tty '/dev/= ttyS0': '/sbin/getty -L 0 ttyS0 vt100' > Jan 30 06:19:43 localhost auth.err getty[8211]: tcgetattr: I/O error^M > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > In file /etc/inittab one line about ttyS0 is commented, but someone add n= ew line at the end > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > # Put a getty on the serial port =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > #ttyS0::respawn:/sbin/getty -L ttyS0 115200=A0vt100 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 > # enable login on alternative console =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 > ttyS0::respawn:/sbin/getty -L 0 ttyS0 vt100 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > Anybody use COM port in Virtual Machines ? For example in virtual hosting= or docker containers, except in special cases ?! > I never hear about that. I did. It seems quite reasonable to me if you have a host system that you interface via SSH. I also used the ttyS0 interface in the past to automate testing the Alpine installer. > May be this line is really unneeded in base ISO file. If we remove the console=3DttyS0 part from the kernel command line, no getty will spawn and the system will only be accessible via the monitor. This breaks all headless setups, since you can't re-add the console=3DttyS0 later via serial. > Every time i call [vi /etc/inittab] and comment this line for my systems. I understand this is inconvenient for you, but if we remove it, we will replace the inconvenience for you with broken usecases for others. If you are working via monitor, you can press tab at the isolinux boot and remove that string from the kernel command line. If its not in the kernel command line, it will also not be included into the inittab. As a persistent solution, you might build your own iso without that kernel boot parameter per default. Previous discussion: https://gitlab.alpinelinux.org/alpine/aports/issues/9324 For the future, maybe it should be considered to ship an separate ISO flavour for use via serial.=20 -- Nero --wRRV7LY7NUeQGEoC Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEyYZWtVKjfO1xLiGkseQkGYqJnGgFAl4ymTEACgkQseQkGYqJ nGgaYwgApQb7VQYlJRiYhDRCo41g1ZjkL8x7kRVR87c3A7Nc83Qw3KvsrSQvbMIX 0zq4+yDQLii32AzIkNThTBoOY9pMpxmGV9Be/xgTmE/STL5387sIkgBJ9BrhilJQ +zw8U0+wM2Soqqx/5U8CP3Gbhhfp+5rzMfneEsUli9CRzqY1GYZxXJIuWLR6q6vS 2vrgl0mZ05Gah5XpGw+4lazHPxlFNC+IkOxiIqZuA8L5C0cTLUrq5lWEUZKSZjHq wS62XJdsAL6lK5qHlKqntZCYUIhlYH2pkYufFc/uGU++JGYR0u3i9GYGB7CD/7a8 V0RtY3iGoUdy/ANV07Azq6eCzzelkw== =Cmz9 -----END PGP SIGNATURE----- --wRRV7LY7NUeQGEoC--