Skip to main content
Topic: service root-ro command failed with exit code 1 (Read 141 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

service root-ro command failed with exit code 1

Code: [Select]
Service root-ro command failed with exit code 1
Service random-seed stop command failed with exit code 20
All services have stopped with no shutdown issued; boot failure?
When I choose "restart boot sequence" it boots with no errors. Using custom kernel with EFIstub.

Re: service root-ro command failed with exit code 1

Reply #1
You can copy /lib/dinit.d/root-ro in /etc/dinit.d and add logfile:
Code: [Select]
type    = scripted
command = /bin/mount -o remount,ro,rshared /
restart = false
logfile = /var/log/dinit/root-ro.log
Or directly in /lib.
So that you get the complete error.

 

Re: service root-ro command failed with exit code 1

Reply #2
You can copy /lib/dinit.d/root-ro in /etc/dinit.d and add logfile:
Code: [Select]
type    = scripted
command = /bin/mount -o remount,ro,rshared /
restart = false
logfile = /var/log/dinit/root-ro.log
Or directly in /lib.
So that you get the complete error.
Now it shows
Code: [Select]
root-ro: execution failed - opening log file: Read-only file system

Re: service root-ro command failed with exit code 1

Reply #3
You can copy /lib/dinit.d/root-ro in /etc/dinit.d and add logfile:

That typically doesn't work for very early services where the filesystem is still read-only, because the logfile can't be opened for writing in that case.

Options are:

Code: [Select]
log-type = buffer

OR

Code: [Select]
options = starts-on-console

In the first case you need to use
Code: [Select]
dinitctl catlog root-ro
to see the log (so it requires that you do manage to boot successfully, which I gather is the case). The 2nd one will hopefully show the error on the console (and hopefully it won't scroll off before you can read it).

These options are documented in the manual so check that for more information.