-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
finit errors on boot & trouble with logging #100
Comments
Sorry, I realized I didn't include my complete
|
Hi! OK, first of all we need to get a mount point for The log redirect should work, not really sure why it doesn't work for you. Maybe try adding |
Thanks. I do have both the
Here is the contents of
When I added
|
It looks like the directory The |
Yup, it seems Finit currently doesn't check if This might explain why nothing else works either, although the non-conditionalized |
In that case, should I remove |
So I just tried removing |
It looks like finit isn't creating |
So, removing the double mount doesn't help and you get no directories for the network interfaces. Do you have the /run/finit/cond/reconf file, or is that still missing? That file should be first created before Double check that /run isn't mounted twice, try unmounting it and check |
Will check and report back. Thank you for your support! |
Would it help if I sent you a |
Probably not, I'd likely have to be able to run it to see what's going on at runtime. Also, I wouldn't be able to look at it until tomorrow evening (CET) at the earliest. A minor detail, that shouldn't affect things, the following two lines of your
I'm sorry I cannot be of any more help :-/ |
No problem, I appreciate the time you're spending on this already. :) I will probably get back to working on this next week, and hopefully I will report back here with a solution. |
Quick update. My
Still, finit does not seem to be happy:
Contents of
Mounted items:
Per your questions previously:
Contents of
Looks like the
Here are the results of that:
The I think I've made this little system about as simple & primitive as I can possibly make it. Finit still does not like it. :( I'm starting to carefully read the finit code to see about the missing Thanks again for your support so far! |
After some more testing and poking around, I learned the following:
|
Digging a bit further, it looks like the problems originate from the following
It is used throughout finit to establish paths to items in |
At work we run systems with /var and /run mounted as tmpfs, the latter mounted by Finit, it works as expected. Not sure what's going on here, but a colleague of mine got a similar issue with The I'll try to get to the bottom of this during the weekend. My intention was to have an example system for you to compare with, but TroglOS isn't really that usable atm. So I'm preparing a basic rootfs + kernel for running with Qemu. |
This seems to be necessary early at boot due to troglobit/finit#100 Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
OK, this took a while longer than I expected, sorry. Finally got around to it this weekend, created tinyroot to be able to confirm your issue. So far this is the only workaround I have: troglobit/tinyroot@9035168 -- create a symlink in |
Thanks, troglobit. For now, the system works well enough with |
Forgot to say: thanks for all your support & for taking some of your weekend to look into this! Very much appreciated. |
No problem, really wanted to get to the bottom of this myself. :) The root cause of it all is the Also, Again, sorry for this mess! I'll see if I find some time to address these issues over the next couple of weeks. Unless you're still interested in helping out and beat me to it :) |
@villains I've just pushed a fix to the |
We cannot allow pid_runpath() to return its 'file' argument because that may be a stack variable in a helper function. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
I am trying finit 3.1 and I am having two issues. Hopefully I am just doing something wrong. :)
First, when finit starts up, the following messages appear in the log:
I realize that BusyBox is rather old, but that is what I am stuck with for this project.
The error message appears to be coming from the file
reconf
missing from the directory/var/run/finit/cond/
(line 75 incond-w.c
).Next, I wanted to test out the logging features.
I tried putting the following in
finit.conf
:The files appear in
/var/log/
except they are empty. Also, no output from the task appear in thesyslog
messages.I was expecting to see the following:
The same is true if I change
task
toservice
in the above snippet.Could you suggest some steps to help troubleshoot these issues?
I am using the
bootmisc
andnetlink
plugins on this test setup. The hardware is an IGEP0020 board running a custom Yocto with Linux kernel 2.6.37. Thanks very much!The text was updated successfully, but these errors were encountered: