+function ventoy_boot_from_hdd {
+ if [ "$grub_platform" = "pc" ]; then
+ if [ "$iso_path" = "(hd0,1)" ]; then
+ if [ -b (hd1) ]; then
+ set root=(hd1)
+ drivemap -s hd0 hd1
+ chainloader +1
+ boot
+ else
+ echo "No local hdd found ..."
+ sleep 3
+ fi
+ else
+ set root=(hd0)
+ chainloader +1
+ boot
+ fi
+ else
+ exit
+ fi
+}
+
+function ventoy_reboot {
+ reboot
+}
+
+