diff --git a/backup-daemon/udisksystemrestoreproxy.cpp b/backup-daemon/udisksystemrestoreproxy.cpp index 4c75fa4..0c41d73 100644 --- a/backup-daemon/udisksystemrestoreproxy.cpp +++ b/backup-daemon/udisksystemrestoreproxy.cpp @@ -288,7 +288,7 @@ QStringList UDiskSystemRestoreProxy::getRsyncArgs(SystemRestoreScene scene) bool UDiskSystemRestoreProxy::doPrepare() { // 移动设备系统备份如果有img,则需要先将img挂载到/backup/imgbackup目录 - QString imgPath = m_backupPath + UDISK_MKSQUASHFS_IMG_NAME; + QString imgPath = m_backupPath + "/" + UDISK_MKSQUASHFS_IMG_NAME; if (Utils::filsExists(imgPath)) { // 1、检测目录/backup/imgbackup是否存在,不存在则创建此目录 QString dstImgMountPath = Utils::getSysRootPath() + BACKUP_IMGBACKUP_PATH; @@ -300,7 +300,7 @@ bool UDiskSystemRestoreProxy::doPrepare() // 3、将img文件挂载到/backup/imgbackup上 MountBackupProcess *processMount = new MountBackupProcess; - if (processMount->mount(imgPath, dstImgMountPath)) { + if (!processMount->mount(imgPath, dstImgMountPath)) { emit checkResult(int(BackupResult::RESTOREDIR_PREPARE_FAILED)); return false; }