Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
alpine
mkinitfs
Commits
48c91ba8
Commit
48c91ba8
authored
Apr 13, 2019
by
Tuan Hoang
Browse files
init: add check for s390x consoles
parent
eea062f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
initramfs-init.in
View file @
48c91ba8
...
...
@@ -93,6 +93,8 @@ rc_add() {
# Recursively resolve tty aliases like console or tty0
list_console_devices
()
{
[
"
$1
"
=
"ttyS0"
]
&&
[
-e
/sys/class/tty/sclp_line0
]
&&
return
if
!
[
-e
/sys/class/tty/
$1
/active
]
;
then
echo
$1
return
...
...
@@ -101,6 +103,10 @@ list_console_devices() {
for
dev
in
$(
cat
/sys/class/tty/
$1
/active
)
;
do
list_console_devices
$dev
done
for
_tty
in
hvc0 xvc0 hvsi0 sclp_line0 ttysclp0
"3270!tty1"
;
do
[
-e
/sys/class/tty/
$_tty
]
&&
echo
$_tty
done
}
setup_inittab_console
(){
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment