140450 【深圳党政XC】在grup界面还原系统后,重新开机,提示无启动设备或者启动失败(必现)
This commit is contained in:
parent
4da3262b84
commit
b96d705d96
|
@ -1056,11 +1056,6 @@ restoreAuto() { #还原
|
||||||
#额外排除目录或文件
|
#额外排除目录或文件
|
||||||
local excludes=
|
local excludes=
|
||||||
if [ -d ${restoreDir}/data/efi ]; then
|
if [ -d ${restoreDir}/data/efi ]; then
|
||||||
mkdir -p ${restoreDir}/data/boot/efi
|
|
||||||
mv -f ${restoreDir}/data/efi ${restoreDir}/data/boot/efi
|
|
||||||
fi
|
|
||||||
if [ -d ${restoreDir}/data/efi ]; then
|
|
||||||
mkdir -p ${rootpath}/boot
|
|
||||||
rsync -avAXHr --no-inc-recursive --ignore-missing-args --delete ${restoreDir}/data/efi ${rootpath}/boot >/dev/null 2>>$PLOGFILE
|
rsync -avAXHr --no-inc-recursive --ignore-missing-args --delete ${restoreDir}/data/efi ${rootpath}/boot >/dev/null 2>>$PLOGFILE
|
||||||
if [ $? -ne 0 -a $? -ne 24 -a $? -ne 23 ]; then
|
if [ $? -ne 0 -a $? -ne 24 -a $? -ne 23 ]; then
|
||||||
echo "System restoring failed, please reboot your system!"
|
echo "System restoring failed, please reboot your system!"
|
||||||
|
@ -1068,7 +1063,6 @@ restoreAuto() { #还原
|
||||||
exit 9
|
exit 9
|
||||||
fi
|
fi
|
||||||
elif [ -d ${restoreDir}/data/boot/efi ]; then
|
elif [ -d ${restoreDir}/data/boot/efi ]; then
|
||||||
mkdir -p ${rootpath}/boot
|
|
||||||
rsync -avAXHr --no-inc-recursive --ignore-missing-args --delete ${restoreDir}/data/boot/efi ${rootpath}/boot >/dev/null 2>>$PLOGFILE
|
rsync -avAXHr --no-inc-recursive --ignore-missing-args --delete ${restoreDir}/data/boot/efi ${rootpath}/boot >/dev/null 2>>$PLOGFILE
|
||||||
if [ $? -ne 0 -a $? -ne 24 -a $? -ne 23 ]; then
|
if [ $? -ne 0 -a $? -ne 24 -a $? -ne 23 ]; then
|
||||||
echo "System restoring failed, please reboot your system!"
|
echo "System restoring failed, please reboot your system!"
|
||||||
|
|
Loading…
Reference in New Issue