From 1314e236f215b0dc80f4edf0d26022c9f2307666 Mon Sep 17 00:00:00 2001 From: zhaominyong Date: Mon, 13 Dec 2021 09:52:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backup-daemon/udisksystemrestoreproxy.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/backup-daemon/udisksystemrestoreproxy.cpp b/backup-daemon/udisksystemrestoreproxy.cpp index 0c41d73..be5d82c 100644 --- a/backup-daemon/udisksystemrestoreproxy.cpp +++ b/backup-daemon/udisksystemrestoreproxy.cpp @@ -384,6 +384,7 @@ void UDiskSystemRestoreProxy::updateGrubUUid() srcFstab.replace("//", "/"); QHash srcPartToUuid = Utils::getPartUuidMap(srcFstab); QString destFstab = Utils::getSysRootPath() + FSTAB_PATH; + destFstab.replace("//", "/"); QHash destPartToUuid = Utils::getPartUuidMap(destFstab); QString findGrub = Utils::executeCmd("find /boot -name grub.cfg");