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

Missing /etc directory in docs on how to create the rootfs #84

Open
thass0 opened this issue Jul 8, 2024 · 0 comments
Open

Missing /etc directory in docs on how to create the rootfs #84

thass0 opened this issue Jul 8, 2024 · 0 comments

Comments

@thass0
Copy link

thass0 commented Jul 8, 2024

The README states:

In this example, the populated root filesystem will look like this:

rootfs/
├── lib
│   └── x86_64-linux-gnu
│       └── libc.so.6
├── lib64
│   └── ld-linux-x86-64.so.2
└── helloworld

Following the rest of the steps in the README results in this crash when running the helloworld example for the first two times:

[    0.102110] ERR:  [appelfloader] <conffile.c @   92> /etc/resolv.conf: Failed to create: Permission denied (13)
[    0.104548] ERR:  [libukboot] <boot.c @  427> Init function at 0x11d420 returned error -13
[    0.106414] CRIT: [libuk9p] <9pdev.c @  118> Assertion failure: uk_list_empty(&fid_mgmt->fid_active_list)

After the two run, the rootfs has changed (the first run seems to create the resolv.conf file, the second the hosts file; both are empty):

ls rootfs/etc
.  ..  hosts  resolv.conf 

If the etc directory and the two files are present, it works from the start. Not sure if this is a Unikraft bug or an issue with the docs here.

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

No branches or pull requests

1 participant