From owner-freebsd-current@FreeBSD.ORG Fri Jan 16 14:59:29 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB2C31065673 for ; Fri, 16 Jan 2009 14:59:29 +0000 (UTC) (envelope-from lihong.chen@gmail.com) Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.187]) by mx1.freebsd.org (Postfix) with ESMTP id 4686B8FC1E for ; Fri, 16 Jan 2009 14:59:29 +0000 (UTC) (envelope-from lihong.chen@gmail.com) Received: by ti-out-0910.google.com with SMTP id a1so1005147tib.3 for ; Fri, 16 Jan 2009 06:59:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=CbY9FhU/tLdwt9ygim6RXBgyKZgkI8q5Z3QO66G2atg=; b=VC8DMsmRUXZAv6MBRb90VgVBhGad5si3jo9M7044VCmO/V+6Y36ZlykzOpXfOm5sic si0YIlTlAGMoEJqSGBAUr9fF4QccKnVbYXZa+yTKrvk4VaT+un4jOJZWQl62MbGYjVpo Vmdaz1qy278kuGK9bGPFzXmdP5kOJv2+xXGxM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=WKuHOKfuNFMgQc98zFTFxav+FWkA6bHXfb5oJS6c01NlhdQodpzYc+4RJDYvWLEOsj hYcecn8LEayMpv6LNPPNpdUxtN1fm2Q4tRn34Z7W8NnG5K2nG1JWg+S/26P2FXIswRVZ o3XqFiaFy2TBUHSOI1uCfHxLJa5KbJ3Ed/xV4= MIME-Version: 1.0 Sender: lihong.chen@gmail.com Received: by 10.110.20.15 with SMTP id 15mr3363624tit.46.1232116635118; Fri, 16 Jan 2009 06:37:15 -0800 (PST) In-Reply-To: <4970976B.1000208@andric.com> References: <4970976B.1000208@andric.com> Date: Fri, 16 Jan 2009 22:37:15 +0800 X-Google-Sender-Auth: 39dd36f3b3ace801 Message-ID: From: "Eric L. Chen" To: Dimitry Andric Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: FreeBSD Current Subject: Re: make release problem? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2009 14:59:29 -0000 On Fri, Jan 16, 2009 at 10:19 PM, Dimitry Andric wrote: > Hi, > > To experiment with some sysinstall things, I'm trying to build a > -CURRENT release. This chugs along for some hours and all works fine, > until it tries to create some mfsroot filesystems, right at (nearly) the > end: > > [...] > sh -e /usr/src/release/scripts/doFS.sh bsdlabel "" /R/stage/mfsroot/mfsroot /R/stage /mnt 4320 /R/stage/mfsfd 8000 minimum3 > + export BLOCKSIZE=512 > + DISKLABEL=bsdlabel > + shift > + MACHINE= > + shift > + FSIMG=/R/stage/mfsroot/mfsroot > + shift > + RD=/R/stage > + shift > + MNT=/mnt > + shift > + FSSIZE=4320 > + shift > + FSPROTO=/R/stage/mfsfd > + shift > + FSINODE=8000 > + shift > + FSLABEL=minimum3 > + shift > + [ 4320 -eq 0 -a minimum3 = auto ] > + rm -f /R/stage/mfsroot/mfsroot > + dd of=/R/stage/mfsroot/mfsroot if=/dev/zero count=4320 bs=1k > + uname -r > + [ -f /R/stage/trees/base/boot/boot ] > + BOOT=-B -b /R/stage/trees/base/boot/boot > + dofs_md > + [ x != x ] > + mdconfig -a -t vnode -f /R/stage/mfsroot/mfsroot > + MDDEVICE=md0 > + [ ! -c /dev/md0 ] > + trap umount /mnt; mdconfig -d -u md0 EXIT > + [ xbsdlabel != x ] > + bsdlabel -w -B -b /R/stage/trees/base/boot/boot md0 minimum3 > + newfs -O1 -i 8000 -o space -m 0 /dev/md0c > fstab: /etc/fstab:0: No such file or directory > newfs: /dev/md0c: could not find special device > + umount /mnt > umount: /mnt: not a file system root directory > *** Error code 1 > > Stop in /usr/src/release. > [...] > > AFAICS, it looks like bsdlabel does NOT create /dev/md0c anymore, only > /dev/md0a. Since the doFS.sh script hasn't been changed since 2004, I > guess there must be some other change somewhere, that has changed either > bsdlabel's (or possibly devd's?) behaviour. > > Example: > > # dd of=mfsroot if=/dev/zero count=4320 bs=1k > 4320+0 records in > 4320+0 records out > 4423680 bytes transferred in 0.117794 secs (37554363 bytes/sec) > # mdconfig -a -t vnode -f mfsroot > md0 > # ls -l /dev/md* > crw-r----- 1 root operator 0, 90 Jan 16 15:16 /dev/md0 > crw------- 1 root wheel 0, 78 Jan 16 09:08 /dev/mdctl > # bsdlabel -w -B -b /boot/boot md0 minimum3 > # ls -l /dev/md* > crw-r----- 1 root operator 0, 90 Jan 16 15:17 /dev/md0 > crw-r----- 1 root operator 0, 95 Jan 16 15:17 /dev/md0a > crw------- 1 root wheel 0, 78 Jan 16 09:08 /dev/mdctl > # newfs -O1 -i 8000 -o space -m 0 /dev/md0c > newfs: /dev/md0c: could not find special device > > Or am I doing something completely crazy here? :) > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > I modified this file "src/release/scripts/doFS.sh" to make release on 7-STABLE/8-CURRENT boxes. Change line 76 from: newfs -O1 -i ${FSINODE} -o space -m 0 /dev/${MDDEVICE}c to: newfs -O1 -i ${FSINODE} -o space -m 0 /dev/${MDDEVICE} Change line 73 from: to sleep 2 For you reference /Eric