Remove a few vestiges of passing an exit code to

panic().

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Glen Barber 2014-10-29 16:20:49 +00:00
parent f27438c752
commit 461f70f64a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/release-vmimage/; revision=273826
2 changed files with 4 additions and 4 deletions

View File

@ -78,7 +78,7 @@ vm_create_azure() {
mount /dev/${mddev} ${DESTDIR}
make -C ${WORLDDIR} DESTDIR=$(realpath ${DESTDIR}) \
installworld installkernel distribution || \
panic 1 "\n\nCannot install the base system to ${DESTDIR}."
panic "\n\nCannot install the base system to ${DESTDIR}."
mount -t devfs devfs ${DESTDIR}/dev
chroot ${DESTDIR} /usr/bin/newaliases
echo '# Custom /etc/fstab for FreeBSD VM images' \
@ -125,7 +125,7 @@ vm_create_azure() {
# This should never happen. But, it has happened.
msg="Cannot umount(8) ${DESTDIR}\n"
msg="${msg}Something has gone horribly wrong."
panic 1 "${msg}"
panic "${msg}"
fi
sleep 1
done

View File

@ -78,7 +78,7 @@ vm_create_azure() {
mount /dev/${mddev} ${DESTDIR}
make -C ${WORLDDIR} DESTDIR=$(realpath ${DESTDIR}) \
installworld installkernel distribution || \
panic 1 "\n\nCannot install the base system to ${DESTDIR}."
panic "\n\nCannot install the base system to ${DESTDIR}."
mount -t devfs devfs ${DESTDIR}/dev
chroot ${DESTDIR} /usr/bin/newaliases
echo '# Custom /etc/fstab for FreeBSD VM images' \
@ -125,7 +125,7 @@ vm_create_azure() {
# This should never happen. But, it has happened.
msg="Cannot umount(8) ${DESTDIR}\n"
msg="${msg}Something has gone horribly wrong."
panic 1 "${msg}"
panic "${msg}"
fi
sleep 1
done