Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jun 2006 09:32:27 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-sparc64@freebsd.org
Subject:   Re: 'make release' & sunlabel/GEOM....
Message-ID:  <200606260932.27608.jhb@freebsd.org>
In-Reply-To: <449F1376.1030805@isc.org>
References:  <449F1376.1030805@isc.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday 25 June 2006 18:51, Peter Losher wrote:
> I am building a custom FreeBSD for internal use for the various
> platforms we use.  For sparc64, I am encountering a issue w/ sunlabel
> when creating the md devices:
> 
> -=-
> sh -e /usr/src/release/scripts/doFS.sh sunlabel ""
> /R/stage/mfsroot/mfsroot /R/stage /mnt  4096 /R/stage/mfsfd 8192 auto
> + export BLOCKSIZE=512
> + DISKLABEL=sunlabel
> + shift
> + MACHINE=
> + shift
> + FSIMG=/R/stage/mfsroot/mfsroot
> + shift
> + RD=/R/stage
> + shift
> + MNT=/mnt
> + shift
> + FSSIZE=4096
> + shift
> + FSPROTO=/R/stage/mfsfd
> + shift
> + FSINODE=8192
> + shift
> + FSLABEL=auto
> + shift
> + [ 4096 -eq 0 -a auto = auto ]
> + rm -f /R/stage/mfsroot/mfsroot
> + dd of=/R/stage/mfsroot/mfsroot if=/dev/zero count=4096 bs=1k
> + uname -r
> + [ -f /R/stage/trees/base/boot/boot ]
> + BOOT=-r
> + 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
> + [ xsunlabel != x ]
> + sunlabel -w -r md0 auto
> Obsolete -r flag ignored
> sunlabel: Geom not found
> + umount /mnt
> umount: /mnt: not a file system root directory
> *** Error code 1
> 
> Stop in /usr/src/release.
> + umount /dev
> *** Error code 1 (ignored)
> -=-
> 
> is sunlabel GEOM-aware?

Yes.  I think it's called 'options GEOM_SUNLABEL'.  It should be on by
default on sparc64 systems, but if you are trying to cross-build it on
another platform you will need to add it.  There might be a
geom_sunlabel.ko kernel module as well.

-- 
John Baldwin



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