blob: a7d2ea4b19eb3d4c18b501fb418c74f347acab8f [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"
10 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"
16 type: CHARACTER_DEV
17 major: 5 minor: 2
18 mode: 0644 uid: 0 gid: 0
19>
20special_file <
21 path: "/dev/null"
22 type: CHARACTER_DEV
23 major: 1 minor: 3
24 mode: 0644 uid: 0 gid: 0
25>
26special_file <
27 path: "/dev/kmsg"
28 type: CHARACTER_DEV
29 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"
39 type: CHARACTER_DEV
40 major: 4 minor: 0
41 mode: 0600 uid: 0 gid: 0
42>
43special_file <
44 path: "/dev/ttyS0"
45 type: CHARACTER_DEV
46 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"
51 type: CHARACTER_DEV
52 major: 4 minor: 65
53 mode: 0660 uid: 0 gid: 0
54>