This commit is contained in:
zhaominyong 2021-12-13 09:52:40 +08:00
parent a12ef633ec
commit 1314e236f2
1 changed files with 1 additions and 0 deletions

View File

@ -384,6 +384,7 @@ void UDiskSystemRestoreProxy::updateGrubUUid()
srcFstab.replace("//", "/");
QHash<QString, QString> srcPartToUuid = Utils::getPartUuidMap(srcFstab);
QString destFstab = Utils::getSysRootPath() + FSTAB_PATH;
destFstab.replace("//", "/");
QHash<QString, QString> destPartToUuid = Utils::getPartUuidMap(destFstab);
QString findGrub = Utils::executeCmd("find /boot -name grub.cfg");