Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Apr 2010 10:53:48 +0000
From:      Kris Moore <kris@pcbsd.org>
To:        Alexander Leidinger <Alexander@Leidinger.net>
Cc:        Bruce Cran <bruce@cran.org.uk>, freebsd-geom@FreeBSD.ORG, Teske <dteske@vicor.com>, Randi Harper <randi@FreeBSD.ORG>, freebsd-current@FreeBSD.ORG, "Andrey V. Elsukov" <bu7cher@yandex.ru>, =?UTF-8?B?RGFnLUVybGluZyBTbcODwrhyZ3Jhdg==?= <des@des.no>
Subject:   Re: [RFC] Rewriting sade(8)
Message-ID:  <4BBDB5BC.3060002@pcbsd.org>
In-Reply-To: <20100408163936.137245fp5ycrre0w@webmail.leidinger.net>
References:  <55861270658151@web135.yandex.ru>	<l2we277d6c81004071049h21670783ic4a9f419aedca272@mail.gmail.com>	<4BBD68DB.7050600@yandex.ru> <201004080727.21020.bruce@cran.org.uk>	<4BBD7CDC.2070505@yandex.ru>	<20100408103809.13496s9i6ny03ocg@webmail.leidinger.net>	<867hoi8gbl.fsf@ds4.des.no>	<20100408121500.13995d1eu7b9bt0k@webmail.leidinger.net>	<86fx36up9e.fsf@ds4.des.no>	<20100408155309.42884l21ogy7m7sw@webmail.leidinger.net>	<86vdc2t4hs.fsf@ds4.des.no> <20100408163936.137245fp5ycrre0w@webmail.leidinger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 04/08/2010 14:39, Alexander Leidinger wrote:
> Quoting Dag-Erling Smørgrav <des@des.no> (from Thu, 08 Apr 2010 
> 16:15:27 +0200):
>
>> Alexander Leidinger <Alexander@Leidinger.net> writes:
>>> Dag-Erling Smørgrav <des@des.no> writes:
>>> > There have been at least three or four attempts to do this in the
>>> > past.  One of them was even fully funded by the FreeBSD Foundation.
>>> > They all failed.
>>> I was told a lot of people tried to make the WITH_CTF part working
>>> without the need to use -DWITH_CTF each time at the command line and
>>> failed. Nevertless I did it. So telling something is not possible
>>> because other people tried and failed is ridiculous.
>>
>> It's not ridiculous, it's experience.  *Painful* experience over a
>> period of nearly 15 years.
>>
>>> BTW: I do not think you talk about a partition editor, but about the
>>> complete sysinstall.
>>
>> Yes and no.  I'm talking about making the user interface pluggable,
>> i.e. run the same program (whether sysinstall or sade) with, say, an
>> ncurses interface on the console and a gtk interface in X.
>
> I did not suggest to run the same program and get different 
> interfaces. My suggestion was to have a backend-lib and a frontend. 
> The backend containing the "business-logic", and the frontend being 
> the presentation layer. If you want a GTK GUI, write a new frontend.
> In the case of sysinstall and sade, both use some kind of curses 
> interface, my suggestion was to the lib as they are both 2 different 
> kind of frontends (two different kinds of point of view regarding the 
> required functionality).
>
> I was misunderstanding your idea in the beginning, I was understanding 
> the description of jhb better. It surely is an applicable idea (and an 
> improvement to what we have currently), but it looks like it is 
> limiting what we could do with sade (the frontend part, not the 
> backend part) if it would be decoupled from sysinstall.
>
> Bye,
> Alexander.
>

That's a pretty similar to the approach we've taken with our new backend 
in PC-BSD 8.x. The notable exception is that instead
of just a lib, our backend is a complete program (written in sh), which 
performs scripted installs, and provides all the functionality
for front-ends to query the system and present data to the end-user.

This has a few advantages, in that the backend can be used stand-alone 
for scripted installations and also provide great flexibility
to the front-end developer. They don't need to worry about performing 
any of the actual installation logic, they just provide a way
for users to select their installation options, generate a configuration 
script, and let the backend run with it.


-- 
Kris Moore
PC-BSD Software
iXsystems




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BBDB5BC.3060002>