]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: kill plymouthd after initrd transition if it's still running
authorFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 5 Sep 2022 19:02:25 +0000 (21:02 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 5 Sep 2022 23:33:02 +0000 (08:33 +0900)
commit5c08efee033f81eba929130a6cacb53069a6c0a7
treeb136cb83c6ee8fe07c61652fbb1077cdf8d9d432
parentbad57012afe0c504e8c8868d5673e5bee333480c
test: kill plymouthd after initrd transition if it's still running

Until now using the INTERACTIVE_DEBUG=yes stuff together with sanitizers
was almost impossible, since the console kept eating up our inputs or
not responding at all. After a painful day of debugging I noticed that
if we use a shell script in the initrd -> root transition, we might end up
with a plymouthd still running, which kept screwing with the tty.

E.g. with initrd -> wrapper -> systemd transition, where the `wrapper`
is a simple script:

```
exec -- /usr/lib/systemd/systemd "$@"
```

we'd end up with a stray plymouthd process after the bootup:

```
 1     0     440       2  20   0      0     0 worker I    ?          0:00 [kworker/5:2-ata_sff]
 1     0     453       2  20   0      0     0 worker I    ?          0:00 [kworker/9:2-rcu_gp]
 5     0     456       1  20   0   7252  1960 do_epo S    ?          0:00 @usr/sbin/plymouthd --mode=boot --pid-file=/run/plymouth/pid --attach-to-session
```

After killing it, the tty works finally as expected.
test/test-functions