Re: [RFC] Rewriting sade(8)

2010-04-14 Thread Daniel Braniss
09.04.10, 11:20, Garrett Cooper yanef...@gmail.com: Ok. Or maybe since `we're here' sade needs to be populating $DESTDIR/etc/fstab, not sysinstall ? I'm also looking for answer to this question. It seems that all basic operations with partitions are already implemented. And I think

Re: [RFC] Rewriting sade(8)

2010-04-14 Thread Andrey V. Elsukov
On 14.04.2010 13:28, Daniel Braniss wrote: correct me if I'm wrong, is MBR the only one that can be used to change the boot partition via menu? and also via serial? BTW, you said you would look into boot0cfg :-) At this thime I implemented writing bootstrap code only for MBR and GPT schemes.

Re: [RFC] Rewriting sade(8)

2010-04-10 Thread Dag-Erling Smørgrav
Garrett Cooper yanef...@gmail.com writes: Now you're making a dangerous assumption that /inst isn't being used by the end-user for any predefined purpose. No, I'm making the entirely reasonable assumption that *during the installation process* sysinstall can mount whatever the hell it wants

Re: [RFC] Rewriting sade(8)

2010-04-09 Thread Alexander Leidinger
Quoting Dag-Erling Smørgrav d...@des.no (from Thu, 08 Apr 2010 16:50:16 +0200): Alexander Leidinger alexan...@leidinger.net writes: 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

Re: [RFC] Rewriting sade(8)

2010-04-09 Thread Dag-Erling Smørgrav
Garrett Cooper yanef...@gmail.com writes: Dag-Erling Smørgrav d...@des.no writes: Garrett Cooper yanef...@gmail.com writes: Dag-Erling Smørgrav d...@des.no writes: [restored relevant context which was removed earlier in the thread] ...which is exactly what I said - but in the

Re: [RFC] Rewriting sade(8)

2010-04-09 Thread Paul Wootton
Dag-Erling Smørgrav wrote: Garrett Cooper yanef...@gmail.com writes: Dag-Erling Smørgrav d...@des.no writes: Garrett Cooper yanef...@gmail.com writes: Dag-Erling Smørgrav d...@des.no writes: [restored relevant context which was removed earlier in the thread] ...which

Re: [RFC] Rewriting sade(8)

2010-04-09 Thread Dag-Erling Smørgrav
Paul Wootton p...@fletchermoorland.co.uk writes: But... If this is a fresh install, then you really have not lost anything if you making a mistake. If sysinstall / sade is run from a running system and a mistake is made then you could loose your data, but as you will need to have su-ed up, how

Re: [RFC] Rewriting sade(8)

2010-04-09 Thread John Baldwin
On Friday 09 April 2010 5:23:18 am Dag-Erling Smørgrav wrote: Garrett Cooper yanef...@gmail.com writes: Dag-Erling Smørgrav d...@des.no writes: Garrett Cooper yanef...@gmail.com writes: Dag-Erling Smørgrav d...@des.no writes: [restored relevant context which was removed earlier in

Re: [RFC] Rewriting sade(8)

2010-04-09 Thread Garrett Cooper
2010/4/9 Dag-Erling Smørgrav d...@des.no: Garrett Cooper yanef...@gmail.com writes: Dag-Erling Smørgrav d...@des.no writes: Garrett Cooper yanef...@gmail.com writes: Dag-Erling Smørgrav d...@des.no writes: [restored relevant context which was removed earlier in the thread] ...which

Re: Re: [RFC] Rewriting sade(8)

2010-04-09 Thread Andrey V . Elsukov
09.04.10, 11:20, Garrett Cooper yanef...@gmail.com: Ok. Or maybe since `we're here' sade needs to be populating $DESTDIR/etc/fstab, not sysinstall ? I'm also looking for answer to this question. It seems that all basic operations with partitions are already implemented. And I think about

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Bruce Cran
On Thursday 08 April 2010 06:25:47 Andrey V. Elsukov wrote: I'm not ready yet to publish code. I planned to announce this RFC a bit later, when code will be finished. But Konstantin (kib@) suggested do it before finishing. That's a shame. As long as the source isn't available it's of little

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Andrey V. Elsukov
On 08.04.2010 10:27, Bruce Cran wrote: That's a shame. As long as the source isn't available it's of little interest to me. For anyone who wants to see the bits of code I've got so far, I've created a Google Code project at http://code.google.com/p/gcpart/ . I'm currently trying to figure out

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Randi Harper
2010/4/7 Andrey V. Elsukov bu7c...@yandex.ru: On 07.04.2010 21:49, Randi Harper wrote: Wow. This is awesome. patches? :D :) I'm not ready yet to publish code. I planned to announce this RFC a bit later, when code will be finished. But Konstantin (kib@) suggested do it before finishing.

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Andrey V. Elsukov
On 08.04.2010 11:27, Randi Harper wrote: It's great that you want to work on this, but there are other people working in the same area, so keeping your code to yourself for too long makes it very likely that it will never get used. Ok. I put the code here:

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Alexander Leidinger
Quoting Andrey V. Elsukov bu7c...@yandex.ru (from Thu, 08 Apr 2010 10:51:08 +0400): On 08.04.2010 10:27, Bruce Cran wrote: That's a shame. As long as the source isn't available it's of little interest to me. For anyone who wants to see the bits of code I've got so far, I've created a

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Dag-Erling Smørgrav
Alexander Leidinger alexan...@leidinger.net writes: Please consider using SVN instead. A lot more users will be able to check out from there. We don't grant non-committers access to the Subversion repo. It looks like other people had a look at sysinstall, not at sade. As sysinstall is

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Rui Paulo
On 8 Apr 2010, at 10:05, Dag-Erling Smørgrav wrote: Alexander Leidinger alexan...@leidinger.net writes: Please consider using SVN instead. A lot more users will be able to check out from there. We don't grant non-committers access to the Subversion repo. The SVN repo is available to the

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Alexander Leidinger
Quoting Dag-Erling Smørgrav d...@des.no (from Thu, 08 Apr 2010 11:05:34 +0200): Alexander Leidinger alexan...@leidinger.net writes: Please consider using SVN instead. A lot more users will be able to check out from there. We don't grant non-committers access to the Subversion repo.

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Svein Skogen (Listmail Account)
On 08.04.2010 11:05, Dag-Erling Smørgrav wrote: Alexander Leidinger alexan...@leidinger.net writes: Please consider using SVN instead. A lot more users will be able to check out from there. We don't grant non-committers access to the Subversion repo. It looks like other people had a look

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Andriy Gapon
on 08/04/2010 12:05 Dag-Erling Smørgrav said the following: Alexander Leidinger alexan...@leidinger.net writes: Please consider using SVN instead. A lot more users will be able to check out from there. We don't grant non-committers access to the Subversion repo. But nothing stops Andrey

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Andrey V. Elsukov
On 08.04.2010 14:15, Alexander Leidinger wrote: We don't grant non-committers access to the Subversion repo. Ooops... seems I misremembered his status. Somehow I associate him with something FreeBSD related. Andrey, did you participate in a GSoC? No, I'm not fit for GSoC. My suggestion is

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Dag-Erling Smørgrav
Rui Paulo rpa...@freebsd.org writes: Dag-Erling Smørgrav d...@des.no writes: Alexander Leidinger alexan...@leidinger.net writes: Please consider using SVN instead. A lot more users will be able to check out from there. We don't grant non-committers access to the Subversion repo. The

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Dag-Erling Smørgrav
Alexander Leidinger alexan...@leidinger.net writes: I think this is more complicated than to refactor the interesting part into a backend with an API which both tools can use. This would also allow someone to write a GUI program (e.g. for PC-BSD). There have been at least three or four

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Alexander Leidinger
Quoting Dag-Erling Smørgrav d...@des.no (from Thu, 08 Apr 2010 14:01:33 +0200): Alexander Leidinger alexan...@leidinger.net writes: I think this is more complicated than to refactor the interesting part into a backend with an API which both tools can use. This would also allow someone to

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread John Baldwin
On Thursday 08 April 2010 5:05:34 am Dag-Erling Smørgrav wrote: Alexander Leidinger alexan...@leidinger.net writes: Please consider using SVN instead. A lot more users will be able to check out from there. We don't grant non-committers access to the Subversion repo. It looks like other

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Rui Paulo
On 8 Apr 2010, at 13:49, John Baldwin wrote: On Thursday 08 April 2010 5:05:34 am Dag-Erling Smørgrav wrote: Alexander Leidinger alexan...@leidinger.net writes: Please consider using SVN instead. A lot more users will be able to check out from there. We don't grant non-committers access to

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Dag-Erling Smørgrav
Alexander Leidinger alexan...@leidinger.net writes: Dag-Erling Smørgrav d...@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

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Dag-Erling Smørgrav
John Baldwin j...@freebsd.org writes: Dag-Erling Smørgrav d...@des.no writes: My suggestion is to add a sysinstall mode to sade where it operates under certain (minor) constraints and reports what it did in a format that sysinstall can parse, so sysinstall can just fork-exec sade instead

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Alexander Leidinger
Quoting Dag-Erling Smørgrav d...@des.no (from Thu, 08 Apr 2010 16:15:27 +0200): Alexander Leidinger alexan...@leidinger.net writes: Dag-Erling Smørgrav d...@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

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Dag-Erling Smørgrav
Alexander Leidinger alexan...@leidinger.net writes: 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. What you call the

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Kris Moore
On 04/08/2010 14:39, Alexander Leidinger wrote: Quoting Dag-Erling Smørgrav d...@des.no (from Thu, 08 Apr 2010 16:15:27 +0200): Alexander Leidinger alexan...@leidinger.net writes: Dag-Erling Smørgrav d...@des.no writes: There have been at least three or four attempts to do this in the

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Marian Hettwer
On Thu, 08 Apr 2010 10:53:48 +, Kris Moore k...@pcbsd.org wrote: It's not nice to hijack a topic, but this is way to interesting for me, so I do it anway :) This has a few advantages, in that the backend can be used stand-alone for scripted installations and also provide great flexibility

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Kris Moore
On 04/08/2010 16:30, Marian Hettwer wrote: On Thu, 08 Apr 2010 10:53:48 +, Kris Moorek...@pcbsd.org wrote: It's not nice to hijack a topic, but this is way to interesting for me, so I do it anway :) :) I didn't mean to hijack either, was trying to discuss advantage of having backend

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Devin Teske
I too love the idea of generalizing (abstracting) the dirty-work to a set of libraries and leaving the user interface up to the userland applications. Thusly, an app in /usr/X11R6/bin can use said libraries in plugging in functionality to an X11 GUI application, meanwhile an app in /bin or /sbin

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Devin Teske
(( wishing that I hadn't un-CC'd the group on earlier e-mails )) Some concerns that I have with separating the code into a back-end versus front-end... 1. Is it currently the idea that -- when it comes down to the crunchgen stuff -- we are going to re-work the code that generates the non-shared

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Devin Teske
Randi and I were discussion the possibility of having sysinstall remember what you did and then able to write out a suitable `install.cfg' file that could be subsequently used to perform a human- less automated install with the same settings. To expand a little on that... I'd like to draw a

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Garrett Cooper
2010/4/8 Dag-Erling Smørgrav d...@des.no: John Baldwin j...@freebsd.org writes: Dag-Erling Smørgrav d...@des.no writes: My suggestion is to add a sysinstall mode to sade where it operates under certain (minor) constraints and reports what it did in a format that sysinstall can parse, so

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Dag-Erling Smørgrav
Garrett Cooper yanef...@gmail.com writes: If the user shoots him or herself in the foot, that's their own problem. That kind of attitude is why people choose Linux over FreeBSD... DES -- Dag-Erling Smørgrav - d...@des.no ___

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Garrett Cooper
On Thu, Apr 8, 2010 at 10:01 AM, Devin Teske dte...@vicor.com wrote: Randi and I were discussion the possibility of having sysinstall remember what you did and then able to write out a suitable `install.cfg' file that could be subsequently used to perform a human- less automated install with

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Garrett Cooper
2010/4/8 Dag-Erling Smørgrav d...@des.no: Garrett Cooper yanef...@gmail.com writes: If the user shoots him or herself in the foot, that's their own problem. That kind of attitude is why people choose Linux over FreeBSD... Where do you draw the line though? /media, /libexec, /proc, /sys,

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Garrett Cooper
2010/4/8 Garrett Cooper yanef...@gmail.com: 2010/4/8 Dag-Erling Smørgrav d...@des.no: Garrett Cooper yanef...@gmail.com writes: If the user shoots him or herself in the foot, that's their own problem. That kind of attitude is why people choose Linux over FreeBSD...    Where do you draw the

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Kris Moore
On 04/08/2010 18:15, Garrett Cooper wrote: On Thu, Apr 8, 2010 at 10:01 AM, Devin Teskedte...@vicor.com wrote: Randi and I were discussion the possibility of having sysinstall remember what you did and then able to write out a suitable `install.cfg' file that could be subsequently used to

Re: [RFC] Rewriting sade(8)

2010-04-08 Thread Randi Harper
On Thu, Apr 8, 2010 at 11:15 AM, Garrett Cooper yanef...@gmail.com wrote: 2. install.cfg is just a hacky / non-style(9) compliant way of specifying how to do an install. If you could separate out sysinstall into separate utilities and have each of the pieces execute as shell commands with

Re: [RFC] Rewriting sade(8)

2010-04-07 Thread Randi Harper
On Wed, Apr 7, 2010 at 9:35 AM, Andrey V. Elsukov bu7c...@yandex.ru wrote: Hi, All. Some days ago i begun rewriting sade(8) to libgeom(3). Just for fun :-) Today i have progress and you can see some screenshoots here: http://butcher.heavennet.ru/sade/ What is done: 1. It's fully rewritten,

Re: [RFC] Rewriting sade(8)

2010-04-07 Thread Alex Kozlov
On Wed, Apr 07, 2010 at 10:49:35AM -0700, Randi Harper wrote: On Wed, Apr 7, 2010 at 9:35 AM, Andrey V. Elsukov bu7c...@yandex.ru wrote: Hi, All. Some days ago i begun rewriting sade(8) to libgeom(3). Just for fun :-) Today i have progress and you can see some screenshoots here:

Re: [RFC] Rewriting sade(8)

2010-04-07 Thread Andrey V. Elsukov
On 07.04.2010 21:49, Randi Harper wrote: Wow. This is awesome. patches? :D :) I'm not ready yet to publish code. I planned to announce this RFC a bit later, when code will be finished. But Konstantin (kib@) suggested do it before finishing. I've been working on moving sysinstall from libdisk