From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 4 13:05:52 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 20E481065670 for ; Wed, 4 Aug 2010 13:05:52 +0000 (UTC) (envelope-from faust64@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 993D58FC0A for ; Wed, 4 Aug 2010 13:05:51 +0000 (UTC) Received: by bwz12 with SMTP id 12so3149412bwz.13 for ; Wed, 04 Aug 2010 06:05:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=aKdXPqznl9wxEEFu4c1pmzI0MdjzAMOsbB03b+391os=; b=Tq6bBfdS2IwHGbQcCgeNJYgUaXg41mKNoPAddas5VBXkTAhGO40EhU7I6LT1Jd65Sn 9RZ+YniYA2LeRcMorI38KdQvyPA2dDa/c02amfXaynRbWdl7hB39N7Cz1e0hxbJqV8Fw fcXazOC9ToqiY7c/VX/yCC3nmsqBXYLKCxtX0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=QsuTRXRcs+xwu0O1VE/9qp5Av6cZE43wryVDrypI998rTZYUA2UtuUgx0QSo19uLCh v3P4udWb6BFDX+x2AfFuF4oGJ1mSfIiLfvSMhZVdpkd+mrBIh1IA9rY9dfKIqDjH15S0 atE2gt5h/dmqitYPjKHXb2+eNvdEda6iMdJfc= Received: by 10.204.127.65 with SMTP id f1mr6259708bks.55.1280925657283; Wed, 04 Aug 2010 05:40:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.119.17 with HTTP; Wed, 4 Aug 2010 05:40:27 -0700 (PDT) From: =?ISO-8859-1?Q?Samuel_Mart=EDn_Moro?= Date: Wed, 4 Aug 2010 14:40:27 +0200 Message-ID: To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: behaviour changes in mdconfig? or something related? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2010 13:05:52 -0000 Hi, I started this thread in the freebsd-questions mailing list. But since I'm quite sure it's not a bsdlabel problem, I might find better answers here. We have a script that buids custom FreeBSD releases. This code works on 4.7, 5.4, 5.5, 6.2, 7.1 and 7.2. I want to make it work with FreeBSD-8.1. Brievly, it works like that: having minimum4, the following disktab layout: minimum4:ty=3Dmfs:se#512:nt#1:rm#300:\ :ns#11520:nc#1:\ :pa#11520:oa#0:ba#4096:fa#512:\ :pc#11520:oc#0:bc#4096:fc#512: dd if=3D/dev/zero of=3Dbootfile.img bs=3D18k count=3D4096 dev=3D`mdconfig -a -t vnode -f bootfile.img` bsdlabel -w -B -b $GENPATH/boot/boot /dev/$dev minimum4 newfs -O1 -i 4096 -o space -m 1 /dev/${dev}c mount /dev/${dev}c /mnt (cd cdroot ; find . | cpio -dump /mnt) [...] When bsdlabelling, I got these warnings: bsdlabel: partition c doesn't cover the whole unit! bsdlabel: An incorrect partition c may cause problems for standard system utilities But it never was a problem for older releases. Since 8.1 (8.0?), after calling bsdlabel, I still have /dev/${dev}a, but/dev/${dev}c doesn't show up anymore. I tried mounting a 7.2-generated image (where I had both md0a and md0c) on = a 8.1 host, and only had md0a listed in devs. I tried mounting a 8.1-generated image (where I had only /dev/md0a) on a 7.= 2 host, and /dev/md0c finally appeard. So, is it possible to / how could I make ${dev}c appear on 8.1, like it was in previous releases? Thanks! Samuel Mart=EDn Moro {EPITECH.} tek4 CamTrace S.A.S (+033) 1 41 38 37 60 1 All=E9e de la Venelle 92150 Suresnes FRANCE "Nobody wants to say how this works. Maybe nobody knows ..." Xorg.conf(5)