blob: 0e88e432834ca6f431655a8086b7979c17de13f0 [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
11 major: 1 minor: 1
12 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
34# Metropolis core logs to /dev/ttyS0 and /dev/tty0 by default, we want
35# 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>