if [ ! -f ${CFG_DIR}/${HV_VER_FILE} ]; then
echo "Create new hvlinux-version file"
- if [ ! -x /usr/bin/uuidgen ]; then
- echo "Error, missing /usr/bin/uuidgen program"
- exit 1
- fi
+ UUIDGEN=/usr/bin/uuidgen
+
+ if [ ! -x ${UUIDGEN} ]; then
+ UUIDGEN=/usr/bin/dbus-uuidgen
+
+ if [ ! -x ${UUIDGEN} ]; then
+ echo "Error, missing /usr/bin/uuidgen program"
+ exit 1
+ fi
+ fi
cat > ${CFG_DIR}/${HV_VER_FILE} <<EOF
# Do not edit this file.
# This file is autogenerated by the HVLinux build system
EOF
- echo "HVUUID=$(uuidgen)" >> ${CFG_DIR}/${HV_VER_FILE}
+ echo "HVUUID=$(${UUIDGEN})" >> ${CFG_DIR}/${HV_VER_FILE}
echo "HVDATE=\"$(date)\"" >> ${CFG_DIR}/${HV_VER_FILE}
fi