Commit f2ed81b0 authored by longpanda's avatar longpanda
Browse files

update

parent 6434e453
...@@ -16,7 +16,7 @@ You can copy many image files at a time and ventoy will give you a boot menu to ...@@ -16,7 +16,7 @@ You can copy many image files at a time and ventoy will give you a boot menu to
x86 Legacy BIOS, IA32 UEFI, x86_64 UEFI and ARM64 UEFI are supported in the same way.<br/> x86 Legacy BIOS, IA32 UEFI, x86_64 UEFI and ARM64 UEFI are supported in the same way.<br/>
Both MBR and GPT partition style are supported in the same way.<br/> Both MBR and GPT partition style are supported in the same way.<br/>
Most type of OS supported(Windows/WinPE/Linux/Unix/Vmware/Xen...) <br/> Most type of OS supported(Windows/WinPE/Linux/Unix/Vmware/Xen...) <br/>
580+ ISO files are tested. 90%+ distros in distrowatch.com supported. <br/> 600+ ISO files are tested. 90%+ distros in distrowatch.com supported. <br/>
</h4> </h4>
# Features # Features
...@@ -34,7 +34,7 @@ Most type of OS supported(Windows/WinPE/Linux/Unix/Vmware/Xen...) <br/> ...@@ -34,7 +34,7 @@ Most type of OS supported(Windows/WinPE/Linux/Unix/Vmware/Xen...) <br/>
* FAT32/exFAT/NTFS/UDF/XFS/Ext2(3)(4) supported for main partition * FAT32/exFAT/NTFS/UDF/XFS/Ext2(3)(4) supported for main partition
* ISO files larger than 4GB supported * ISO files larger than 4GB supported
* Native boot menu style for Legacy & UEFI * Native boot menu style for Legacy & UEFI
* Most type of OS supported, 580+ iso files tested * Most type of OS supported, 600+ iso files tested
* Linux vDisk boot supported * Linux vDisk boot supported
* Not only boot but also complete installation process * Not only boot but also complete installation process
* Menu dynamically switchable between List/TreeView mode * Menu dynamically switchable between List/TreeView mode
......
...@@ -484,8 +484,7 @@ static int vtoy_check_device(ventoy_os_param *param, const char *device) ...@@ -484,8 +484,7 @@ static int vtoy_check_device(ventoy_os_param *param, const char *device)
debug("param->vtoy_disk_size=%llu size=%llu\n", debug("param->vtoy_disk_size=%llu size=%llu\n",
(unsigned long long)param->vtoy_disk_size, (unsigned long long)size); (unsigned long long)param->vtoy_disk_size, (unsigned long long)size);
if ((param->vtoy_disk_size == size || param->vtoy_disk_size == size + 512) && if (memcmp(vtguid, param->vtoy_disk_guid, 16) == 0 &&
memcmp(vtguid, param->vtoy_disk_guid, 16) == 0 &&
memcmp(vtsig, param->vtoy_disk_signature, 4) == 0) memcmp(vtsig, param->vtoy_disk_signature, 4) == 0)
{ {
debug("<%s> is right ventoy disk\n", device); debug("<%s> is right ventoy disk\n", device);
...@@ -563,8 +562,20 @@ int vtoydump_main(int argc, char **argv) ...@@ -563,8 +562,20 @@ int vtoydump_main(int argc, char **argv)
rc = vtoy_os_param_from_file(filename, param); rc = vtoy_os_param_from_file(filename, param);
if (rc) if (rc)
{ {
debug("ventoy os param not found %d\n", rc); debug("ventoy os param not found %d %d\n", rc, ENOENT);
goto end; if (ENOENT == rc)
{
debug("now try with file %s\n", "/ventoy/ventoy_os_param");
rc = vtoy_os_param_from_file("/ventoy/ventoy_os_param", param);
if (rc)
{
goto end;
}
}
else
{
goto end;
}
} }
if (verbose) if (verbose)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment