|
@@ -108,7 +108,11 @@ cfg_content='set timeout=15
|
|
|
# rm -rf ${iso_folder}
|
|
|
LOOP_DEVICE=$(lsblk | grep disk_mount)
|
|
|
|
|
|
- grub-install --target=i386-pc --boot-directory=${root_folder}/bin/disk_mount/boot/ /dev/${LOOP_DEVICE:2:5}
|
|
|
+LOOP_DEVICE=${LOOP_DEVICE:2:10}
|
|
|
+LOOP_DEVICE=${LOOP_DEVICE%%p1*}
|
|
|
+
|
|
|
+
|
|
|
+ grub-install --target=i386-pc --boot-directory=${root_folder}/bin/disk_mount/boot/ /dev/$LOOP_DEVICE
|
|
|
|
|
|
sync
|
|
|
bash umount_virt_disk.sh
|
|
@@ -154,4 +158,4 @@ if [ $flag_can_run -eq 1 ]; then
|
|
|
fi
|
|
|
else
|
|
|
echo "不满足运行条件"
|
|
|
-fi
|
|
|
+fi
|