Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ramfs and /dev/ #1303

Open
m-mueller678 opened this issue Feb 27, 2024 · 2 comments
Open

ramfs and /dev/ #1303

m-mueller678 opened this issue Feb 27, 2024 · 2 comments
Labels

Comments

@m-mueller678
Copy link

when using ramfs and the cli image with a custom command line, /dev/ is empty:

./scripts/build modules=cli fs=ramfs -j$(nproc) && ./scripts/run.py -e cli
/# ls /dev

When either omitting -e cli or changing to fs=rofs , /dev/ is populated:

/# ls /dev
console null    random  urandom vblk0   vblk0.1
/# 

I stumbled upon this with a custom binary (not cli) where the lack of /dev/random was causing problems

@wkozaczuk wkozaczuk added the bug label Mar 21, 2024
@wkozaczuk
Copy link
Collaborator

Thanks for reporting this issue. This looks like a bug. I wonder if the /dev is not mounted correctly when running an image with a ramfs root filesystem. Or it is a bug in ramfs vnodes layer or maybe something else.
I will try to take a look.

@kevinross
Copy link

maybe a bad interaction between this line and this function?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants