Re: cvs commit: src/usr.sbin/sysinstall installUpgrade.c

2007-06-06 Thread Daniel O'Connor
On Wednesday 06 June 2007 19:01, Poul-Henning Kamp wrote: > >> Also, parsing it could be problematic :( > >> (XML isn't in sysinstall's limited repertoire) > > Please look at how gstat uses a convenient library function to > do just that... Ah, nice, I could use that :) > >Well there is kern.geom

Re: cvs commit: src/usr.sbin/sysinstall installUpgrade.c

2007-06-06 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED]>, Ceri Davies writes: > >--enLffk0M6cffIOOh >Content-Type: text/plain; charset=us-ascii >Content-Disposition: inline >Content-Transfer-Encoding: quoted-printable > >On Wed, Jun 06, 2007 at 06:56:42PM +0930, Daniel O'Connor wrote: >> On Wednesday 06 June 2007 17:10, Cer

Re: cvs commit: src/usr.sbin/sysinstall installUpgrade.c

2007-06-06 Thread Ceri Davies
On Wed, Jun 06, 2007 at 06:56:42PM +0930, Daniel O'Connor wrote: > On Wednesday 06 June 2007 17:10, Ceri Davies wrote: > > > Right answer: Why not read it from sysctl kern.geom.confxml > > > > That sounds like the right thing to do, but that sysctl returns > > nothing on my RELENG_6 system; why wo

Re: cvs commit: src/usr.sbin/sysinstall installUpgrade.c

2007-06-06 Thread Daniel O'Connor
On Wednesday 06 June 2007 17:10, Ceri Davies wrote: > > Right answer: Why not read it from sysctl kern.geom.confxml > > That sounds like the right thing to do, but that sysctl returns > nothing on my RELENG_6 system; why would that be? Also, parsing it could be problematic :( (XML isn't in sysins

Re: cvs commit: src/usr.sbin/sysinstall installUpgrade.c

2007-06-06 Thread Ceri Davies
On Wed, Jun 06, 2007 at 07:42:21PM +1200, Andrew Thompson wrote: > On Wed, Jun 06, 2007 at 08:40:02AM +0100, Ceri Davies wrote: > > On Wed, Jun 06, 2007 at 06:57:31AM +, Poul-Henning Kamp wrote: > > > In message <[EMAIL PROTECTED]>, "Daniel O'Connor" writes > > > : > > > > > > >On Wednesday 06

Re: cvs commit: src/usr.sbin/sysinstall installUpgrade.c

2007-06-06 Thread LI Xin
Ceri Davies wrote: > On Wed, Jun 06, 2007 at 06:57:31AM +, Poul-Henning Kamp wrote: >> In message <[EMAIL PROTECTED]>, "Daniel O'Connor" writes >> : >> >>> On Wednesday 06 June 2007 07:44, M. Warner Losh wrote: : '$1~/\\dev\\/(aacd|ad|afd|amrd|ar|da|idad|ipsd|mfid|mlxd|twed)/ && : \ $

Re: cvs commit: src/usr.sbin/sysinstall installUpgrade.c

2007-06-06 Thread Andrew Thompson
On Wed, Jun 06, 2007 at 08:40:02AM +0100, Ceri Davies wrote: > On Wed, Jun 06, 2007 at 06:57:31AM +, Poul-Henning Kamp wrote: > > In message <[EMAIL PROTECTED]>, "Daniel O'Connor" writes > > : > > > > >On Wednesday 06 June 2007 07:44, M. Warner Losh wrote: > > >> : '$1~/\\dev\\/(aacd|ad|afd|am

Re: cvs commit: src/usr.sbin/sysinstall installUpgrade.c

2007-06-06 Thread Ceri Davies
On Wed, Jun 06, 2007 at 06:57:31AM +, Poul-Henning Kamp wrote: > In message <[EMAIL PROTECTED]>, "Daniel O'Connor" writes > : > > >On Wednesday 06 June 2007 07:44, M. Warner Losh wrote: > >> : '$1~/\\dev\\/(aacd|ad|afd|amrd|ar|da|idad|ipsd|mfid|mlxd|twed)/ && > >> : \ $2~/\\/$/ {print substr($

Re: cvs commit: src/usr.sbin/sysinstall installUpgrade.c

2007-06-06 Thread Ceri Davies
On Tue, Jun 05, 2007 at 04:14:42PM -0600, M. Warner Losh wrote: > In message: <[EMAIL PROTECTED]> > Ceri Davies <[EMAIL PROTECTED]> writes: > : On Tue, Jun 05, 2007 at 05:44:41AM +, Xin LI wrote: > : > delphij 2007-06-05 05:44:41 UTC > : > > : > FreeBSD src repository > : >

Re: cvs commit: src/usr.sbin/sysinstall installUpgrade.c

2007-06-05 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED]>, "Daniel O'Connor" writes : >On Wednesday 06 June 2007 07:44, M. Warner Losh wrote: >> : '$1~/\\dev\\/(aacd|ad|afd|amrd|ar|da|idad|ipsd|mfid|mlxd|twed)/ && >> : \ $2~/\\/$/ {print substr($1, 1, index($1, \"s\") - 1)}' >> : /etc/fstab`"); >> : >> : where the regex is

Re: cvs commit: src/usr.sbin/sysinstall installUpgrade.c

2007-06-05 Thread Dmitry Morozovsky
On Wed, 6 Jun 2007, Daniel O'Connor wrote: DO> On Wednesday 06 June 2007 07:44, M. Warner Losh wrote: DO> > : '$1~/\\dev\\/(aacd|ad|afd|amrd|ar|da|idad|ipsd|mfid|mlxd|twed)/ && DO> > : \ $2~/\\/$/ {print substr($1, 1, index($1, \"s\") - 1)}' DO> > : /etc/fstab`"); DO> > : DO> > : where the regex i

Re: cvs commit: src/usr.sbin/sysinstall installUpgrade.c

2007-06-05 Thread Daniel O'Connor
On Wednesday 06 June 2007 07:44, M. Warner Losh wrote: > : '$1~/\\dev\\/(aacd|ad|afd|amrd|ar|da|idad|ipsd|mfid|mlxd|twed)/ && > : \ $2~/\\/$/ {print substr($1, 1, index($1, \"s\") - 1)}' > : /etc/fstab`"); > : > : where the regex is built from every device name in device_names > : (which even then

Re: cvs commit: src/usr.sbin/sysinstall installUpgrade.c

2007-06-05 Thread LI Xin
Hi, What about: %%% vsystem("disklabel -B `awk $2~/\\/$/ {print substr($1, 6, length($1)-6)} /etc/fstab`); %%% Well, I admit that replacing a piece of non-working code with a workaround is not generally a good idea, but I did not found a perfect solution yet, and it does not make us any good to

Re: cvs commit: src/usr.sbin/sysinstall installUpgrade.c

2007-06-05 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Ceri Davies <[EMAIL PROTECTED]> writes: : On Tue, Jun 05, 2007 at 05:44:41AM +, Xin LI wrote: : > delphij 2007-06-05 05:44:41 UTC : > : > FreeBSD src repository : > : > Modified files: : > usr.sbin/sysinstall installUpgrade.c : > Log

Re: cvs commit: src/usr.sbin/sysinstall installUpgrade.c

2007-06-05 Thread Ceri Davies
On Tue, Jun 05, 2007 at 05:44:41AM +, Xin LI wrote: > delphij 2007-06-05 05:44:41 UTC > > FreeBSD src repository > > Modified files: > usr.sbin/sysinstall installUpgrade.c > Log: > Write to slice name instead of directly to the disk device. > This fixes writing boot code u

Re: cvs commit: src/usr.sbin/sysinstall installUpgrade.c

2006-11-11 Thread Tom Rhodes
On Sat, 11 Nov 2006 10:38:11 + (UTC) Ceri Davies <[EMAIL PROTECTED]> wrote: > ceri2006-11-11 10:38:11 UTC > > FreeBSD src repository > > Modified files: > usr.sbin/sysinstall installUpgrade.c > Log: > Add /lib and /libexec to the list of directories that have the schg >

Re: cvs commit: src/usr.sbin/sysinstall installUpgrade.c

2006-06-03 Thread Ceri Davies
On Fri, Jun 02, 2006 at 03:02:52PM -0400, Kris Kennaway wrote: > On Fri, Jun 02, 2006 at 10:40:52AM +0100, Ceri Davies wrote: > > On Thu, Jun 01, 2006 at 11:18:37AM -0400, Kris Kennaway wrote: > > > On Thu, Jun 01, 2006 at 09:41:27AM +0100, Ceri Davies wrote: > > > > On Wed, May 31, 2006 at 09:21:3

Re: cvs commit: src/usr.sbin/sysinstall installUpgrade.c

2006-06-02 Thread Kris Kennaway
On Fri, Jun 02, 2006 at 10:40:52AM +0100, Ceri Davies wrote: > On Thu, Jun 01, 2006 at 11:18:37AM -0400, Kris Kennaway wrote: > > On Thu, Jun 01, 2006 at 09:41:27AM +0100, Ceri Davies wrote: > > > On Wed, May 31, 2006 at 09:21:30PM -0400, Kris Kennaway wrote: > > > > On Wed, May 31, 2006 at 07:15:2

Re: cvs commit: src/usr.sbin/sysinstall installUpgrade.c

2006-06-02 Thread Ceri Davies
On Thu, Jun 01, 2006 at 11:18:37AM -0400, Kris Kennaway wrote: > On Thu, Jun 01, 2006 at 09:41:27AM +0100, Ceri Davies wrote: > > On Wed, May 31, 2006 at 09:21:30PM -0400, Kris Kennaway wrote: > > > On Wed, May 31, 2006 at 07:15:20PM +, Ceri Davies wrote: > > > > ceri2006-05-31 19:15:20

Re: cvs commit: src/usr.sbin/sysinstall installUpgrade.c

2006-06-01 Thread Kris Kennaway
On Thu, Jun 01, 2006 at 09:41:27AM +0100, Ceri Davies wrote: > On Wed, May 31, 2006 at 09:21:30PM -0400, Kris Kennaway wrote: > > On Wed, May 31, 2006 at 07:15:20PM +, Ceri Davies wrote: > > > ceri2006-05-31 19:15:20 UTC > > > > > > FreeBSD src repository > > > > > > Modified file

Re: cvs commit: src/usr.sbin/sysinstall installUpgrade.c

2006-06-01 Thread Ceri Davies
On Wed, May 31, 2006 at 09:21:30PM -0400, Kris Kennaway wrote: > On Wed, May 31, 2006 at 07:15:20PM +, Ceri Davies wrote: > > ceri2006-05-31 19:15:20 UTC > > > > FreeBSD src repository > > > > Modified files: > > usr.sbin/sysinstall installUpgrade.c > > Log: > > Update t

Re: cvs commit: src/usr.sbin/sysinstall installUpgrade.c

2006-05-31 Thread Kris Kennaway
On Wed, May 31, 2006 at 07:15:20PM +, Ceri Davies wrote: > ceri2006-05-31 19:15:20 UTC > > FreeBSD src repository > > Modified files: > usr.sbin/sysinstall installUpgrade.c > Log: > Update the location of the kernel for upgrades. > > I considered leaving /boot/kerne

Re: cvs commit: src/usr.sbin/sysinstall installUpgrade.c

2006-05-04 Thread Ceri Davies
On Thu, May 04, 2006 at 08:10:34PM +, Ceri Davies wrote: > ceri2006-05-04 20:10:34 UTC > > FreeBSD src repository > > Modified files: > usr.sbin/sysinstall installUpgrade.c > Log: > Fix binary upgrades by accounting for the schg flag on /var/empty. Those reading diffs w