summaryrefslogtreecommitdiffstats
path: root/release/sparc64
diff options
context:
space:
mode:
authorkensmith <kensmith@FreeBSD.org>2004-08-22 05:34:07 +0000
committerkensmith <kensmith@FreeBSD.org>2004-08-22 05:34:07 +0000
commit55f7c69395574a9f008104c07e997687cbd890a1 (patch)
tree6c7162d533ba99821e2ab49352d7fbc9bd867b17 /release/sparc64
parent9349236b6fc39d3f6b2c2caaa8b77b476a327f55 (diff)
downloadFreeBSD-src-55f7c69395574a9f008104c07e997687cbd890a1.zip
FreeBSD-src-55f7c69395574a9f008104c07e997687cbd890a1.tar.gz
Found another one. Why does mdconfig hate me? Add a "sleep 5" to
this script, without it sparc64 ISO building was consistently failing because the /dev/md0 device name was not present when the commands following mdconfig ran. Apparently there is the possibility of a delay between when mdconfig finishes and the names become visible in /dev. Yes, we could code this better than an unconditional call to "sleep 5" but IMHO we should fix the underlying problem instead. MFC after: 3 days
Diffstat (limited to 'release/sparc64')
-rw-r--r--release/sparc64/mkisoimages.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/release/sparc64/mkisoimages.sh b/release/sparc64/mkisoimages.sh
index bc91d62..624f360 100644
--- a/release/sparc64/mkisoimages.sh
+++ b/release/sparc64/mkisoimages.sh
@@ -30,6 +30,8 @@ MNT=/mnt
if [ "x$1" = "x-b" ]; then
dd if=/dev/zero of=${IMG} bs=512 count=1024
MD=`mdconfig -a -t vnode -f ${IMG}`
+ # XXX - hack to give time for device name to show up
+ sleep 5
sunlabel -w -B -b $4/boot/boot1 ${MD} auto
newfs -O1 -o space -m 0 /dev/${MD}c
mount /dev/${MD}c ${MNT}
OpenPOWER on IntegriCloud