misc/138347: [patch] [nanobsd] nanobsd build is broken due to mdconfig(8) change

Eugene Grosbein eugen at grosbein.pp.ru
Sun Aug 30 15:00:09 UTC 2009

>Number:         138347
>Category:       misc
>Synopsis:       [patch] [nanobsd] nanobsd build is broken due to mdconfig(8) change
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 30 15:00:08 UTC 2009
>Originator:     Eugene Grosbein
>Release:        FreeBSD 8.0-BETA3 i386
private person
System: FreeBSD grosbein.pp.ru 8.0-BETA3 FreeBSD 8.0-BETA3 #6: Fri Aug 28 22:34:15 KRAST 2009 eugen at grosbein.pp.ru:/usr/local/obj/usr/local/src/sys/DADV i386

	After http://www.freebsd.org/cgi/query-pr.cgi?pr=116177,
	mdconfig returns non-zero exit status if called for non-existing
	device. This reveals a bug of src/tools/tools/nanobsd/nanobsd.sh
	sitting here from revision 1.1: inside create_i386_diskimage(),
	it does "mdconfig -d -u $MD" as last statement
	then runs the same command again as part of "trap ... EXIT" procedure
	and fails due to not masked non-zero exit status

	Try to build nanobsd.


	Remove extra mdconfig call:

--- tools/tools/nanobsd/nanobsd.sh.orig	2009-08-30 22:39:54.000000000 +0800
+++ tools/tools/nanobsd/nanobsd.sh	2009-08-30 22:40:00.000000000 +0800
@@ -490,7 +490,6 @@
 	echo "Writing out _.disk.image..."
 	dd if=/dev/${MD}s1 of=${NANO_DISKIMGDIR}/_.disk.image bs=64k
-	mdconfig -d -u $MD
 	) > ${NANO_OBJ}/_.di 2>&1


More information about the freebsd-bugs mailing list