diff --git a/meta-digi-arm/recipes-core/udev/udev-extraconf/mount_digiparts.sh b/meta-digi-arm/recipes-core/udev/udev-extraconf/mount_digiparts.sh index 0f37fe9c1..2b34c50bc 100644 --- a/meta-digi-arm/recipes-core/udev/udev-extraconf/mount_digiparts.sh +++ b/meta-digi-arm/recipes-core/udev/udev-extraconf/mount_digiparts.sh @@ -95,7 +95,7 @@ elif [ "${SUBSYSTEM}" = "ubi" ]; then # In the case of a 'system' partition with many UBI volumes, the device # is always /dev/ubi0 # Mount the volume. - if ! mount -t ubifs ubi0:${PARTNAME} ${MOUNT_PARAMS} ${MOUNTPOINT}; then + if ! ${MOUNT} -t ubifs ${DEVNAME} ${MOUNT_PARAMS} ${MOUNTPOINT}; then logger -t udev "ERROR: Could not mount '${PARTNAME}' volume" rmdir --ignore-fail-on-non-empty ${MOUNTPOINT} fi