blob: 310616b3dda6000e8570a807ad740d9369618c85 [file] [log] [blame]
Serge Bazanskia3938142022-04-04 17:04:47 +02001# Critical /dev files which should be present as early as possible, ie. be baked
2# into filesystem images.
3
4# At least /dev/console and /dev/null are required to exist for Linux
5# to properly boot an init. Here we additionally include important device nodes
6# like /dev/kmsg and /dev/ptmx which might need to be available before a proper
7# device manager (ie. devtmpfs) is launched.
8special_file <
9 path: "/dev/console"
Tim Windelschmidta10d0cb2025-01-13 14:44:15 +010010 type: TYPE_CHARACTER_DEV
Lorenz Brund026b372023-02-13 19:38:45 +010011 major: 5 minor: 1
Serge Bazanskia3938142022-04-04 17:04:47 +020012 mode: 0600 uid: 0 gid: 0
13>
14special_file <
15 path: "/dev/ptmx"
Tim Windelschmidta10d0cb2025-01-13 14:44:15 +010016 type: TYPE_CHARACTER_DEV
Serge Bazanskia3938142022-04-04 17:04:47 +020017 major: 5 minor: 2
18 mode: 0644 uid: 0 gid: 0
19>
20special_file <
21 path: "/dev/null"
Tim Windelschmidta10d0cb2025-01-13 14:44:15 +010022 type: TYPE_CHARACTER_DEV
Serge Bazanskia3938142022-04-04 17:04:47 +020023 major: 1 minor: 3
24 mode: 0644 uid: 0 gid: 0
25>
26special_file <
27 path: "/dev/kmsg"
Tim Windelschmidta10d0cb2025-01-13 14:44:15 +010028 type: TYPE_CHARACTER_DEV
Serge Bazanskia3938142022-04-04 17:04:47 +020029 major: 1 minor: 11
30 mode: 0644 uid: 0 gid: 0
31>
32
33
Lorenz Brunf0b22ff2023-05-02 16:04:20 +020034# Metropolis core logs to /dev/ttyS{0,1} and /dev/tty0 by default, we want
Serge Bazanskia3938142022-04-04 17:04:47 +020035# these to also be present before devtmpfs is mounted so that minit can
36# log there, too.
37special_file <
38 path: "/dev/tty0"
Tim Windelschmidta10d0cb2025-01-13 14:44:15 +010039 type: TYPE_CHARACTER_DEV
Serge Bazanskia3938142022-04-04 17:04:47 +020040 major: 4 minor: 0
41 mode: 0600 uid: 0 gid: 0
42>
43special_file <
44 path: "/dev/ttyS0"
Tim Windelschmidta10d0cb2025-01-13 14:44:15 +010045 type: TYPE_CHARACTER_DEV
Serge Bazanskia3938142022-04-04 17:04:47 +020046 major: 4 minor: 64
47 mode: 0660 uid: 0 gid: 0
48>
Lorenz Brunf0b22ff2023-05-02 16:04:20 +020049special_file <
50 path: "/dev/ttyS1"
Tim Windelschmidta10d0cb2025-01-13 14:44:15 +010051 type: TYPE_CHARACTER_DEV
Lorenz Brunf0b22ff2023-05-02 16:04:20 +020052 major: 4 minor: 65
53 mode: 0660 uid: 0 gid: 0
54>