vmklive: bail if required pkgs aren't available.
This commit is contained in:
parent
b1ffbb785f
commit
d570464973
2 changed files with 16 additions and 1 deletions
|
@ -265,6 +265,15 @@ if [ "$(id -u)" -ne 0 ]; then
|
||||||
error_out
|
error_out
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#
|
||||||
|
# Check there are repos registered before anything.
|
||||||
|
#
|
||||||
|
${XBPS_REPO_CMD} list >/dev/null 2>&1
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "No repositories available, exiting..."
|
||||||
|
error_out
|
||||||
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# Mount pseudofs in the target rootfs.
|
# Mount pseudofs in the target rootfs.
|
||||||
#
|
#
|
||||||
|
@ -289,6 +298,12 @@ for f in ${PACKAGE_LIST}; do
|
||||||
info_msg " $f"
|
info_msg " $f"
|
||||||
done
|
done
|
||||||
if [ -z "$ROOTDIR" ]; then
|
if [ -z "$ROOTDIR" ]; then
|
||||||
|
# Check that all pkgs are reachable.
|
||||||
|
${XBPS_BIN_CMD} ${XBPS_ARGS} -n install ${PACKAGE_LIST} >>$LOGFILE 2>&1
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
info_msg "Missing required binary packages, exiting..."
|
||||||
|
error_out
|
||||||
|
fi
|
||||||
${XBPS_BIN_CMD} ${XBPS_ARGS} install ${PACKAGE_LIST} \
|
${XBPS_BIN_CMD} ${XBPS_ARGS} install ${PACKAGE_LIST} \
|
||||||
2>&1|cat >> $LOGFILE || error_out
|
2>&1|cat >> $LOGFILE || error_out
|
||||||
${XBPS_BIN_CMD} ${XBPS_ARGS} autoupdate \
|
${XBPS_BIN_CMD} ${XBPS_ARGS} autoupdate \
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'vmklive'
|
# Template file for 'vmklive'
|
||||||
pkgname=vmklive
|
pkgname=vmklive
|
||||||
version=0.8.2
|
version=0.8.3
|
||||||
short_desc="Void GNU/Linux live image maker"
|
short_desc="Void GNU/Linux live image maker"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
license="Public domain"
|
license="Public domain"
|
||||||
|
|
Loading…
Reference in a new issue