|
Dinit seems to be unable to properly start on filesystems initially set as read-only, Independently of Distribution/Bootloader (See Forum Thread 1, Forum Thread 2) Right now this seems to be something downstream has to work out with changes to the dinit root ro service (where taken care of) or ultimately users have to figure it out themselves The same set-ups with other init systems do not present this issue (Personally tested on runit and openrc) , thus should this be considered an issue on dinit? |
Replies: 2 comments 1 reply
|
Dinit itself doesn't care if filesystems are initially read only. It is in fact specifically designed to handle that case. My own desktop system boots with the root filesystem initially read-only. Any issue that does happen is due to the way services are set up. See the final message in the second forum thread that you posted. It says they have got Artix booting using Dinit and into a btrfs overlay via a few small changes to system configuration and service scripts. |
|
Thanks for the quick response I did read the thread till the end, but I misunderstood the source of the problem, I believed such services were provided by dinit, now I've taken a look at the source and saw that's not the case, my bad May I ask if it's feasible to provide some general guideline/notes in documentation about this boot case? I get this might be out of scope given that it heavily relies on how the distribution sets dinit up, but it might be helpful for distributions looking into dinit given that two that already do seem to not manage it correctly yet |
I think it's pretty much already covered:
https://github.com/davmac314/dinit/blob/master/doc/linux/DINIT-AS-INIT.md
The example services in the same directory are for booting a system where the root filesystem is initially mounted read-only (that's a fairly typical case even when not booting into a snapshot).
If you think there's something specifically missing please let me know. Please understand though that the documentation can't cover everything and how services are set up is really up to distributions.