Cannot switch TTY with fbsplash
I tried launching fbsplash with startup logo and -T 7 to switch TTY so the openrc messages won’t appear on top of it (I want a clear splash screen until the system finished loading).
I’m getting some random numbers once I use the parameter -T:
rpi3bp:~# strace -s 512 /sbin/fbsplash -s /home/user/loading_image.ppm -T1
execve("/sbin/fbsplash", ["/sbin/fbsplash", "-s", "/home/user/loading_image.ppm", "-T1"], 0x7eb7fd74 /* 15 vars */) = 0
set_tls(0x76f23554) = 0
set_tid_address(0x76f234c4) = 11381
mprotect(0x5d8000, 8192, PROT_READ) = 0
getuid32() = 0
open("/dev/tty", O_RDWR|O_LARGEFILE) = 3
ioctl(3, KDGKBTYPE, 0x7ef01c33) = -1 ENOTTY (Not a tty)
close(3) = 0
ioctl(2, KDGKBTYPE, 0x7ef01c33) = -1 ENOTTY (Not a tty)
open("/dev/tty0", O_RDWR|O_LARGEFILE) = 3
ioctl(3, KDGKBTYPE, 0x7ef01c33) = 0
rt_sigprocmask(SIG_UNBLOCK, [RT_1 RT_2], NULL, 8) = 0
rt_sigaction(SIGUSR1, {sa_handler=0x506250, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x76ecc7f0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGUSR2, {sa_handler=0x506250, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x76ecc7f0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
open("/dev/tty2129665", O_RDWR|O_NOCTTY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
write(2, "fbsplash: can't open '/dev/tty2129665': No such file or directory\n", 66fbsplash: can't open '/dev/tty2129665': No such file or directory
) = 66
exit_group(1) = ?
+++ exited with 1 +++
Not really sure why.
Thanks!
(from redmine: issue id 9215, created on 2018-08-09, closed on 2019-05-04)
- Changesets:
- Revision f87f8c66 by Timo Teräs on 2018-08-09T19:07:10Z:
main/busybox: fix fbsplash console switching
Fixes #9215
This was broken in commit dc6cfb7cebc64cdb which just removed
opt_complementary (due to that being removed in bb). Add proper
getopt flag to get correct behaviour.