use devtmpfs in initramfs

static device nodes don't work with virtio
This commit is contained in:
Daniel Barlow 2023-12-07 20:03:03 +00:00
parent 5adfb0230f
commit a8891461aa
2 changed files with 1 additions and 6 deletions

View file

@ -47,12 +47,6 @@ in
dir /proc 0755 0 0 dir /proc 0755 0 0
dir /dev 0755 0 0 dir /dev 0755 0 0
nod /dev/console 0600 0 0 c 5 1 nod /dev/console 0600 0 0 c 5 1
nod /dev/mtdblock0 0600 0 0 b 31 0
nod /dev/mtdblock1 0600 0 0 b 31 1
nod /dev/mtdblock2 0600 0 0 b 31 2
nod /dev/mtdblock3 0600 0 0 b 31 3
nod /dev/mtdblock4 0600 0 0 b 31 4
nod /dev/mtdblock5 0600 0 0 b 31 5
dir /target 0755 0 0 dir /target 0755 0 0
dir /target/persist 0755 0 0 dir /target/persist 0755 0 0
dir /target/nix 0755 0 0 dir /target/nix 0755 0 0

View file

@ -55,6 +55,7 @@ int main(int argc, char *argv[], char *envp[])
write(1, banner, strlen(banner)); write(1, banner, strlen(banner));
AVER(mount("none", "/proc", "proc", 0, NULL)); AVER(mount("none", "/proc", "proc", 0, NULL));
AVER(mount("none", "/dev", "devtmpfs", 0, NULL));
int cmdline = open("/proc/cmdline", O_RDONLY, 0); int cmdline = open("/proc/cmdline", O_RDONLY, 0);