Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Dec 2008 09:03:40 -0200
From:      "Carlos A. M. dos Santos" <unixmania@gmail.com>
To:        obrien@freebsd.org, freebsd-current@freebsd.org
Subject:   Re: Shooting sysinstall/SADE geometry warning in the head
Message-ID:  <e71790db0812260303i5e22397bq24ab010d5311031c@mail.gmail.com>
In-Reply-To: <20081226072712.GA25406@dragon.NUXI.org>
References:  <20081226072712.GA25406@dragon.NUXI.org>

next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_83359_7171511.1230289420814
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Fri, Dec 26, 2008 at 5:27 AM, David O'Brien <obrien@freebsd.org> wrote:
> It seems Sysinstall and SADE are ingorant of today's disk geometries.
> Is there good reason to not make this change?  I've been getting the
> gratitious
>
> +----------------------------- Message -----------------------------+
> |WARNING:  A geometry of 290721/16/63 for ad8 is incorrect.  Using  |
[...]
>
> warning from just about every usage of sysinstall/SADE over the past
> few years.

I suggested the attached patch some time ago. It keeps the message but
makes it less scaring. Please see

     http://lists.freebsd.org/pipermail/freebsd-stable/2008-May/042697.html

-- 
cd /usr/ports/sysutils/life
make clean

------=_Part_83359_7171511.1230289420814
Content-Type: application/octet-stream; name=sysinstall-64kcyl.diff
Content-Transfer-Encoding: base64
X-Attachment-Id: f_fp6q5u440
Content-Disposition: attachment; filename=sysinstall-64kcyl.diff

ZGlmZiAtZHVyUCBzeXNpbnN0YWxsLm9yaWcvZGlza3MuYyBzeXNpbnN0YWxsL2Rpc2tzLmMKLS0t
IHN5c2luc3RhbGwub3JpZy9kaXNrcy5jCTIwMDgtMDItMDEgMTg6Mjg6NDQuMDAwMDAwMDAwIC0w
MjAwCisrKyBzeXNpbnN0YWxsL2Rpc2tzLmMJMjAwOC0wNS0yNSAyMzo0MzozNi4wMDAwMDAwMDAg
LTAzMDAKQEAgLTEwNiw2ICsxMDYsNDcgQEAKIHN0YXRpYyBkYWRkcl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hbiAyNTYgaGVhZHMgb3IKK21vcmUgdGhhbiA2MyBzZWN0b3JzIHBlciB0cmFj
ayAoMjU1IHNlY3RvcnMgb24gdGhlIFBDOTgKK2FyY2hpdGVjdHVyZSkuCiBEZWZhdWx0OiBubwog
Y2hhbmdlIHRvIGdlb21ldHJ5LgogLkl0IHBhcnRpdGlvbgo=
------=_Part_83359_7171511.1230289420814--



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