Serge Bazanski | a393814 | 2022-04-04 17:04:47 +0200 | [diff] [blame] | 1 | # 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. |
| 8 | special_file < |
| 9 | path: "/dev/console" |
| 10 | type: CHARACTER_DEV |
Lorenz Brun | d026b37 | 2023-02-13 19:38:45 +0100 | [diff] [blame] | 11 | major: 5 minor: 1 |
Serge Bazanski | a393814 | 2022-04-04 17:04:47 +0200 | [diff] [blame] | 12 | mode: 0600 uid: 0 gid: 0 |
| 13 | > |
| 14 | special_file < |
| 15 | path: "/dev/ptmx" |
| 16 | type: CHARACTER_DEV |
| 17 | major: 5 minor: 2 |
| 18 | mode: 0644 uid: 0 gid: 0 |
| 19 | > |
| 20 | special_file < |
| 21 | path: "/dev/null" |
| 22 | type: CHARACTER_DEV |
| 23 | major: 1 minor: 3 |
| 24 | mode: 0644 uid: 0 gid: 0 |
| 25 | > |
| 26 | special_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 Brun | f0b22ff | 2023-05-02 16:04:20 +0200 | [diff] [blame^] | 34 | # Metropolis core logs to /dev/ttyS{0,1} and /dev/tty0 by default, we want |
Serge Bazanski | a393814 | 2022-04-04 17:04:47 +0200 | [diff] [blame] | 35 | # these to also be present before devtmpfs is mounted so that minit can |
| 36 | # log there, too. |
| 37 | special_file < |
| 38 | path: "/dev/tty0" |
| 39 | type: CHARACTER_DEV |
| 40 | major: 4 minor: 0 |
| 41 | mode: 0600 uid: 0 gid: 0 |
| 42 | > |
| 43 | special_file < |
| 44 | path: "/dev/ttyS0" |
| 45 | type: CHARACTER_DEV |
| 46 | major: 4 minor: 64 |
| 47 | mode: 0660 uid: 0 gid: 0 |
| 48 | > |
Lorenz Brun | f0b22ff | 2023-05-02 16:04:20 +0200 | [diff] [blame^] | 49 | special_file < |
| 50 | path: "/dev/ttyS1" |
| 51 | type: CHARACTER_DEV |
| 52 | major: 4 minor: 65 |
| 53 | mode: 0660 uid: 0 gid: 0 |
| 54 | > |