Make release fails on mdconfig

Marco Walraven m.walraven at terantula.com
Tue Dec 4 00:03:06 PST 2007


Hi All,

I have been doing some release builds overhere with success, however lately the builds fail on mdconfig with the following error:

+ mdconfig -a -t vnode -f /R/stage/mfsroot/mfsroot
mdconfig: failed to load geom_md module: No such file or directory
+ MDDEVICE=
*** Error code 1

Looking at the chrooted environment I see that /boot/kernels is not populated whereas in old builds it is. If I install a kernel into the chrooted environment using 'make installkernel DESTDIR=/dir_to_chroot' and run a 'make rerelease' mdconfig happily accepts it and the make release builds successfully.  The kernel I run has support for mdconfig; I can use memory disks without problems.

Any clue why this fails in the first place ?


Script output for release.8 target:

touch release.7
cp /R/stage/trees/base/etc/disktab /etc
rm -rf /R/stage/mfsfd
mkdir /R/stage/mfsfd
cd /R/stage/mfsfd &&  mkdir -p etc/defaults dev mnt stand/etc/defaults stand/help  var/empty
( cd /R/stage/mfsfd &&  for dir in bin sbin ; do  ln -sf /stand $dir;  done )
cp /R/stage/trees/base/sbin/dhclient-script /R/stage/mfsfd/stand
cp /usr/src/release/../etc/usbd.conf /R/stage/mfsfd/etc/usbd.conf
cp /usr/src/release/../etc/master.passwd /R/stage/mfsfd/etc/master.passwd
cp /R/stage/trees/base/etc/*pwd.db /R/stage/mfsfd/etc/
( for F in defaults/rc.conf netconfig protocols ; do  sed -e '/^#.*$/d' -e 's/[:space:]*#.*$//g'  /R/stage/trees/base/etc/$F > /R/stage/mfsfd/stand/etc/$F ;  done )
grep -E '^(ftp|nameserver|domain|sunrpc|cmd|nfsd)[^-\w]'  /R/stage/trees/base/etc/services |  sed -e '/^#.*$/d' -e 's/[:space:]*#.*$//g'  > /R/stage/mfsfd/stand/etc/services
grep 'operator' /R/stage/trees/base/etc/group  > /R/stage/mfsfd/stand/etc/group
ln /R/stage/mfsfd/stand/etc/services /R/stage/mfsfd/etc/services
ln /R/stage/mfsfd/stand/etc/group /R/stage/mfsfd/etc/group
ln /R/stage/mfsfd/stand/etc/netconfig /R/stage/mfsfd/etc/netconfig
cp /R/stage/trees/base/COPYRIGHT /R/stage/mfsfd/stand/help/COPYRIGHT.hlp
test -f /usr/src/release/install.cfg  && cp /usr/src/release/install.cfg /R/stage/mfsfd
*** Error code 1 (ignored)
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
mdconfig: failed to load geom_md module: No such file or directory
+ MDDEVICE=
*** Error code 1

Stop in /usr/src/release.
+ umount /dev
*** Error code 1

Stop in /data/RELENG_6/release.



Regards,

Marco Walraven


-- 
 Terantula - Industrial Strength Open Source
 phone:+31 64 3232 400 / www: http://www.terantula.com / pgpkey: E7EE7A46
 pgp fingerprint: F2EE 122D 964C DE68 7380 6F95 3710 7719 E7EE 7A46 


More information about the freebsd-hackers mailing list