On 25/05/2016 20:25, Bruce Dubbs wrote:
> Pierre Labastie wrote:
>> On 25/05/2016 06:03, Bruce Dubbs wrote:
>>>
>>>> How doese jhalfs work with this version?
>>>
>>> It doesn't yet.  This is a work in progress.
>>>
>>>   -- Bruce
>>>
>>>
>> I'll have a look at that. But I need to decide how to enter the choice
>> between systemd and sysvinit. Note that you do not need to know the
>> internals of jhalfs to read the following, but of course, you should be a
>> user:
>>
>> It cannot be in the Makefile, because jhalfs is supposed to work with
>> reasonably old versions (I mean at least in the 7.x series), which
>> obviously do not have merged books, so "make systemd" would be nonsense
>> for those.
>>
>> So it has to be in the menu, but then, jhalfs needs to be able to
>> determine whether it will be building a merged book or not. Since the book
>> would be downloaded after exiting the menu, that's not so easy... Of
>> course, we could have a question like: "just in case, do you want systemd
>> or sysvinit?", but there is some kind of chicken and egg problem here.
>>
>> I'll think a little more about this, but I'd be happy to get some input.
> 
> I've been thinking about jhalfs too.  I'd say that when we select 'Use Book',
> then we should change the option 'Linux From Scratch' to two options:
> 
> Linux From Scratch - SystemV
> Linux From Scratch - Systemd
> 

Thanks, that's a good idea:
- If the version is 7.9 or below, choose trunk or branch-systemd depending on
this setting.
- If the version is above (SVN or 8.x), pass a "revision' variable to the xsl
machinery...
- Note that if you select systemd and the version is too old, this should
generate an error message.
- Also, if you use a local copy, you ask for systemd, and it is a pure sysv
book (or the converse), that should generate an error too.

I'll begin along those lines. Please feel free to comment.

Pierre

-- 
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to