<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/poky.git/meta/recipes-core/sysvinit/sysvinit-inittab, branch styhead-5.1.3</title>
<subtitle>Mirror of git.yoctoproject.org/poky</subtitle>
<id>https://git.enea.com/cgit/linux/poky.git/atom?h=styhead-5.1.3</id>
<link rel='self' href='https://git.enea.com/cgit/linux/poky.git/atom?h=styhead-5.1.3'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/'/>
<updated>2023-10-09T14:51:13+00:00</updated>
<entry>
<title>sysvinit-inittab: use ttyrun to run getty only if the terminal exists</title>
<updated>2023-10-09T14:51:13+00:00</updated>
<author>
<name>Ross Burton</name>
<email>ross.burton@arm.com</email>
</author>
<published>2023-10-06T11:22:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=42d35e89a343eb28d85f8c4ab4da486bed8ae160'/>
<id>urn:sha1:42d35e89a343eb28d85f8c4ab4da486bed8ae160</id>
<content type='text'>
Wrap calls to start_getty with ttyrun, so that getty isn't started if
the device doesn't exist.  As we know start_getty is only called when
the device exists we can remove the partial workaround for this problem
in that scripts too.

This neatly obsoletes SERIAL_CONSOLES_CHECK, whose sole purpose was to
check what terminals are present at boot and rewrite inittab.  Notably,
this meant that SERIAL_CONSOLES_CHECK made using a read-only rootfs
impossible.

(From OE-Core rev: f4fd17d5a5e4eaa31995d3ca52c871cfbdc0df68)

(From OE-Core rev: 8e48297621311116d3edd7e3aa0de1b8ef2431b1)

Signed-off-by: Ross Burton &lt;ross.burton@arm.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>sysvinit-inittab/start_getty: Fix respawn too fast</title>
<updated>2022-08-21T21:51:41+00:00</updated>
<author>
<name>Bertrand Marquis</name>
<email>bertrand.marquis@arm.com</email>
</author>
<published>2022-08-11T09:47:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=760cdeee7653bba30e1511f84b9a067e062fc7e9'/>
<id>urn:sha1:760cdeee7653bba30e1511f84b9a067e062fc7e9</id>
<content type='text'>
When an entry in /dev does not exist, start_getty is returning directly.
As it is started from init in a respawn mode, it will loop infinitely.
In this case add a sleep inside start_getty to prevent the "Respawning
too fast" message popping up every 5 minutes.

This case is happening quite often when the system is started as an
hypervisor guest as the standard serial line is usually taken by it and
removed from the configuration.

This was triggered quite often running linux as dom0 on top of Xen on
arm as the serial line is taken by Xen and removed from the device tree.

Use the opportunity to replace one tab with spaces as the rest of the
file is using spaces.

(From OE-Core rev: 5a704d0ff4d95b6d3a67b80a0db2be66253e7d61)

Signed-off-by: Bertrand Marquis &lt;bertrand.marquis@arm.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>classes: rootfs-postcommands: autologin root on serial-getty</title>
<updated>2022-08-12T14:46:49+00:00</updated>
<author>
<name>Johannes Schneider</name>
<email>johannes.schneider@leica-geosystems.com</email>
</author>
<published>2022-08-02T09:40:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=54dd5c56fc76390bcc02b4d91eec2d8c45b7ae77'/>
<id>urn:sha1:54dd5c56fc76390bcc02b4d91eec2d8c45b7ae77</id>
<content type='text'>
when empty-root-password AND serial-autologin-root are part of the
IMAGE_FEATURES, save some of the developers time by not having to type
the (then still sole) 'root' username on the serial console after each
and every reboot

this is done by inserting '--autologin root' into the command line of
the responsible 'getty' service

(From OE-Core rev: 01b3cb46405f814e27cab5290118211786cd63a0)

Signed-off-by: Johannes Schneider &lt;johannes.schneider@leica-geosystems.com&gt;
Signed-off-by: Luca Ceresoli &lt;luca.ceresoli@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>sysvinit-inittab/start_getty: Check /sys for the tty device existence</title>
<updated>2021-04-18T10:37:26+00:00</updated>
<author>
<name>Kevin Hao</name>
<email>kexin.hao@windriver.com</email>
</author>
<published>2021-04-07T12:18:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=bfbccfd85fcf8d3789f152aa7cb1f8d355873892'/>
<id>urn:sha1:bfbccfd85fcf8d3789f152aa7cb1f8d355873892</id>
<content type='text'>
The hvc tty driver doesn't populate a file like /proc/tty/driver/serial,
so the current implementation of start_getty doesn't work for the hvc
console. By checking the /sys/class/tty/ for the tty device existence,
it should support more console types and also make the codes more simple.

(From OE-Core rev: 670ceef0f6584ece5ce4176610255226a6148570)

Signed-off-by: Kevin Hao &lt;kexin.hao@windriver.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>sysvinit-inittab: Add support for tty devices with 10 or more number.</title>
<updated>2020-06-15T13:53:45+00:00</updated>
<author>
<name>Yuki Hoshino</name>
<email>yuki.hoshino@miraclelinux.com</email>
</author>
<published>2020-06-12T08:16:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=8540eca6cd029e52a81c485647de6ecb203c2d7d'/>
<id>urn:sha1:8540eca6cd029e52a81c485647de6ecb203c2d7d</id>
<content type='text'>
"start_getty" support for tty devices with under 10 number.
When SERIAL_CONSOLES has tty devices with 10 or more number,
do not't start getty and output the following message.
----------
sh 1: unknown operand
----------

(From OE-Core rev: 39dc49523f5d24db8f8053444c543c371c32d10c)

Signed-off-by: Yuki Hoshino &lt;yuki.hoshino@miraclelinux.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>sysvinit-inittab: support non-busybox-getty on serial consoles</title>
<updated>2019-02-12T14:04:30+00:00</updated>
<author>
<name>André Draszik</name>
<email>andre.draszik@jci.com</email>
</author>
<published>2019-02-11T11:21:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=2e608fd1b70f00d92028688df1efa948d318292c'/>
<id>urn:sha1:2e608fd1b70f00d92028688df1efa948d318292c</id>
<content type='text'>
Busybox' getty has code to try to make itself a session leader,
whereas util-linux' agetty doesn't. It expects this to happen
from outside.
When getty is not a session leader, many things don't work on
the serial console, e.g. setting the terminal process group,
job control doesn't work, etc.

Executing image tests also fails with AssertionErrors, because
    Feb  5 16:12:55 qemuarm getty[590]: /dev/ttyAMA1: cannot get controlling tty: Operation not permitted
    Feb  5 16:12:55 qemuarm getty[590]: /dev/ttyAMA1: cannot set process group: Inappropriate ioctl for device

Update the start_getty script to invoke getty via the setsid
utility if needed, i.e. if /sbin/getty is not busybox getty.

[YOCTO #13058]

(From OE-Core rev: 37be77565d323fc543427ad47399996119f59ab1)

Signed-off-by: André Draszik &lt;andre.draszik@jci.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>sysvinit-inittab: start_getty: Cleanup comments</title>
<updated>2017-09-21T08:24:24+00:00</updated>
<author>
<name>Andrea Adami</name>
<email>andrea.adami@gmail.com</email>
</author>
<published>2017-09-15T23:35:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=b555f56edceec71386c9c4e6dab086ee95049278'/>
<id>urn:sha1:b555f56edceec71386c9c4e6dab086ee95049278</id>
<content type='text'>
(From OE-Core rev: dd17a009e3adf2dc0d75a4c664086f661401e9ff)

Signed-off-by: Andrea Adami &lt;andrea.adami@gmail.com&gt;
Signed-off-by: Ross Burton &lt;ross.burton@intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>sysvinit-inittab: start_getty: consider whitespaces in tty driver name</title>
<updated>2017-09-21T08:24:24+00:00</updated>
<author>
<name>Andrea Adami</name>
<email>andrea.adami@gmail.com</email>
</author>
<published>2017-09-15T23:35:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=fbefc329886f1cbbc5c07378dcb15afdb83bec46'/>
<id>urn:sha1:fbefc329886f1cbbc5c07378dcb15afdb83bec46</id>
<content type='text'>
Unbreak serial console when driver name contains spaces (PXA serial).

Fix commit ac0e954
"start_getty: Over added SERIAL_CONSOLE cause error in userspace log"

(From OE-Core rev: 8b98302c30efb7073f61dc2a166f7414f050ef65)

Signed-off-by: Andrea Adami &lt;andrea.adami@gmail.com&gt;
Signed-off-by: Ross Burton &lt;ross.burton@intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>start_getty: Over added SERIAL_CONSOLE cause error in userspace log</title>
<updated>2017-06-03T22:46:06+00:00</updated>
<author>
<name>Choong YinThong</name>
<email>yin.thong.choong@intel.com</email>
</author>
<published>2017-04-14T00:26:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=65dfeb248ba0209fb6b6966e28cb28f1b063fdda'/>
<id>urn:sha1:65dfeb248ba0209fb6b6966e28cb28f1b063fdda</id>
<content type='text'>
Error log will be logged into /var/log/message.
Added in more condition checking on the script. Check
/proc/tty/drivers and /proc/tty/driver/*
file system to retrieve active targeted serial.
Only establish getty with active serial in runtime.

[YOCTO #10844]

Reviewed-by: Saul Wold &lt;sgw@linux.intel.com&gt;
(From OE-Core rev: ac0e9541fe93e866e42914f65a0516b993f0cffe)

Signed-off-by: Choong YinThong &lt;yin.thong.choong@intel.com&gt;
Signed-off-by: Ross Burton &lt;ross.burton@intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>sysvinit-inittab: make TERM=vt102 on serial consoles</title>
<updated>2016-11-23T11:10:13+00:00</updated>
<author>
<name>André Draszik</name>
<email>adraszik@tycoint.com</email>
</author>
<published>2016-11-10T10:47:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=993fbcfb85e4556577328ec9021b6e2769f3722a'/>
<id>urn:sha1:993fbcfb85e4556577328ec9021b6e2769f3722a</id>
<content type='text'>
This makes more sense than the default TERM=linux (as set
by the linux kernel).
In addition, when using busybox init, it tries to achieve
the same (in a different way).

Both agetty, and busybox getty support the terminal type as
the last argument.

(From OE-Core rev: a23004f32dda9310c7efc29720fa9c3027a7c329)

Signed-off-by: André Draszik &lt;adraszik@tycoint.com&gt;
Signed-off-by: Ross Burton &lt;ross.burton@intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
</feed>
