:: Re: [DNG] OpenRC and Devuan
Top Page
Delete this message
Reply to this message
Author: parazyd
Date:  
To: Simon Hobson
CC: dng
Subject: Re: [DNG] OpenRC and Devuan
On Tue, 03 May 2016, Simon Hobson wrote:

> Jaromil <jaromil@???> wrote:
>
> >> Instead of an openRC effort at this point, I'd rather see a hook
> >> for apt-get / aptitude / etc, to move all files specific to init
> >> systems not being used to their own file hierarchies, eg.
> >>
> >>  /var/cache/init-systems
> >>    /sysvinit
> >>      /etc
> >>      /lib
> >>      /usr
> >>    /openrc
> >>      /etc
> >>      /lib
> >>      /usr
> >>    /systemd
> >>      /etc
> >>      /lib
> >>      /usr

>
> > This is an important suggestion, which parazyd himself was evaluating
> > yesterday, noting that among the errors made in the previous openrc
> > packages was this one: put the files of each init system in the same
> > /etc/init.d directory, basically making them overlap.
> >
> > I agree we should adopt the policy you are proposing in Devuan.
>
> How does that work in terms of getting the right files into place ? Is it a case of the switching process will copy the files into /etc and so on ? Or will they be symlinked, or what ? And possibly more important, what's the process for removing them when switching to another init ? And what about having two systems installed for those who want to try one but leave the other selectable at boot time (for if it doesn't work out ?)
> I'm thinking back to the "debate" over /bin and /usr/bin and the discussions related to what needs to be mounted early during boot - /var isn't typically mounted until relatively late.
>
> From that basis, would it be better to perhaps put openrc scripts in /etc/init-orc or something like that ?
>


/var/cache/init-systems ?? Yes, I know it's just an example, but is a
very wrong one.

All OpenRC specific files/dirs like init.d, conf.d, runlevels and such
simply go to /etc/openrc/ , much like systemd with /etc/systemd. It is
really the correct way to do it.
Also, if one switches to OpenRC, you should forget about helper scripts
like update-rc.d.

If one switches to OpenRC from sysvinit, the install script would just
have to look for the enabled initscripts and their runlevels, and enable
them accordingly with OpenRC. Provided the initscripts are included in
the packages already installed. On that note, Gentoo's package
repositories might be a valuable resource.

On what could/could be removed, IMHO the old sysvinit scripts can stick
around because they will not overlap with OpenRC's scripts. The only
thing that comes to mind is the inittab and how it will be handled?
Perhaps just a symlink to /etc/openrc/inittab ...

--
~ parazyd
0333 7671 FDE7 5BB6 A85E C91F B876 CB44 FA1B 0274