Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
92db873b
"...git@developer.sourcefind.cn:modelzoo/paddleocr.git" did not exist on "f1506916720c1bb69518e3d281dec9dc1b5181c3"
Commit
92db873b
authored
Aug 18, 2021
by
longpanda
Browse files
misc update
parent
3c01eec4
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
14 deletions
+22
-14
EDK2/edk2_mod/edk2-edk2-stable201911/MdeModulePkg/Application/Ventoy/VentoyProtocol.c
...le201911/MdeModulePkg/Application/Ventoy/VentoyProtocol.c
+2
-1
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_linux.c
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_linux.c
+9
-9
GRUB2/MOD_SRC/grub-2.04/install.sh
GRUB2/MOD_SRC/grub-2.04/install.sh
+2
-0
INSTALL/grub/grub.cfg
INSTALL/grub/grub.cfg
+1
-0
INSTALL/tool/ventoy_lib.sh
INSTALL/tool/ventoy_lib.sh
+1
-1
INSTALL/ventoy_pack.sh
INSTALL/ventoy_pack.sh
+7
-3
No files found.
EDK2/edk2_mod/edk2-edk2-stable201911/MdeModulePkg/Application/Ventoy/VentoyProtocol.c
View file @
92db873b
...
@@ -1138,14 +1138,15 @@ EFI_STATUS EFIAPI ventoy_install_blockio(IN EFI_HANDLE ImageHandle, IN UINT64 Im
...
@@ -1138,14 +1138,15 @@ EFI_STATUS EFIAPI ventoy_install_blockio(IN EFI_HANDLE ImageHandle, IN UINT64 Im
{
{
gBlockData
.
Media
.
BlockSize
=
512
;
gBlockData
.
Media
.
BlockSize
=
512
;
gBlockData
.
Media
.
LastBlock
=
ImgSize
/
512
-
1
;
gBlockData
.
Media
.
LastBlock
=
ImgSize
/
512
-
1
;
gBlockData
.
Media
.
ReadOnly
=
FALSE
;
}
}
else
else
{
{
gBlockData
.
Media
.
BlockSize
=
2048
;
gBlockData
.
Media
.
BlockSize
=
2048
;
gBlockData
.
Media
.
LastBlock
=
ImgSize
/
2048
-
1
;
gBlockData
.
Media
.
LastBlock
=
ImgSize
/
2048
-
1
;
gBlockData
.
Media
.
ReadOnly
=
TRUE
;
}
}
gBlockData
.
Media
.
ReadOnly
=
TRUE
;
gBlockData
.
Media
.
MediaPresent
=
1
;
gBlockData
.
Media
.
MediaPresent
=
1
;
gBlockData
.
Media
.
LogicalBlocksPerPhysicalBlock
=
1
;
gBlockData
.
Media
.
LogicalBlocksPerPhysicalBlock
=
1
;
...
...
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_linux.c
View file @
92db873b
...
@@ -1501,20 +1501,20 @@ grub_err_t ventoy_cmd_linux_chain_data(grub_extcmd_context_t ctxt, int argc, cha
...
@@ -1501,20 +1501,20 @@ grub_err_t ventoy_cmd_linux_chain_data(grub_extcmd_context_t ctxt, int argc, cha
isosize
=
file
->
size
;
isosize
=
file
->
size
;
boot_catlog
=
ventoy_get_iso_boot_catlog
(
file
);
len
=
(
int
)
grub_strlen
(
args
[
0
]
);
if
(
boot_catlog
)
if
(
len
>=
4
&&
0
==
grub_strcasecmp
(
args
[
0
]
+
len
-
4
,
".img"
)
)
{
{
if
(
ventoy_is_efi_os
()
&&
(
!
ventoy_has_efi_eltorito
(
file
,
boot_catlog
)))
debug
(
"boot catlog %u for img file
\n
"
,
boot_catlog
);
{
grub_env_set
(
"LoadIsoEfiDriver"
,
"on"
);
}
}
}
else
else
{
{
len
=
(
int
)
grub_strlen
(
args
[
0
]
);
boot_catlog
=
ventoy_get_iso_boot_catlog
(
file
);
if
(
len
>=
4
&&
0
==
grub_strcasecmp
(
args
[
0
]
+
len
-
4
,
".img"
)
)
if
(
boot_catlog
)
{
{
debug
(
"boot catlog %u for img file
\n
"
,
boot_catlog
);
if
(
ventoy_is_efi_os
()
&&
(
!
ventoy_has_efi_eltorito
(
file
,
boot_catlog
)))
{
grub_env_set
(
"LoadIsoEfiDriver"
,
"on"
);
}
}
}
else
else
{
{
...
...
GRUB2/MOD_SRC/grub-2.04/install.sh
View file @
92db873b
...
@@ -97,6 +97,8 @@ elif [ "$1" = "arm64" ]; then
...
@@ -97,6 +97,8 @@ elif [ "$1" = "arm64" ]; then
if
!
echo
$all_modules
|
grep
-q
"
${
line
%.mod
}
"
;
then
if
!
echo
$all_modules
|
grep
-q
"
${
line
%.mod
}
"
;
then
echo
"Copy
$line
..."
echo
"Copy
$line
..."
cp
-a
$VT_DIR
/GRUB2/INSTALL/lib/grub/arm64-efi/
$line
$VT_DIR
/INSTALL/grub/arm64-efi/
cp
-a
$VT_DIR
/GRUB2/INSTALL/lib/grub/arm64-efi/
$line
$VT_DIR
/INSTALL/grub/arm64-efi/
xz
$VT_DIR
/INSTALL/grub/arm64-efi/
$line
mv
$VT_DIR
/INSTALL/grub/arm64-efi/
${
line
}
.xz
$VT_DIR
/INSTALL/grub/arm64-efi/
${
line
}
fi
fi
done
done
elif
[
"
$1
"
=
"mips64el"
]
;
then
elif
[
"
$1
"
=
"mips64el"
]
;
then
...
...
INSTALL/grub/grub.cfg
View file @
92db873b
...
@@ -1758,6 +1758,7 @@ function legacy_img_memdisk {
...
@@ -1758,6 +1758,7 @@ function legacy_img_memdisk {
function img_common_menuentry {
function img_common_menuentry {
set ventoy_compatible=YES
set ventoy_compatible=YES
set ventoy_busybox_ver=32
set ventoy_busybox_ver=32
unset LoadIsoEfiDriver
vt_chosen_img_path vt_chosen_path vt_chosen_size
vt_chosen_img_path vt_chosen_path vt_chosen_size
...
...
INSTALL/tool/ventoy_lib.sh
View file @
92db873b
...
@@ -320,7 +320,7 @@ EOF
...
@@ -320,7 +320,7 @@ EOF
for
i
in
0 1 2 3 4 5 6 7 8 9
;
do
for
i
in
0 1 2 3 4 5 6 7 8 9
;
do
check_umount_disk
"
$PART2
"
check_umount_disk
"
$PART2
"
if
mkfs.vfat
-F
16
-n
VTOYEFI
$PART2
;
then
if
mkfs.vfat
-F
16
-n
VTOYEFI
-s
1
$PART2
;
then
echo
'success'
echo
'success'
break
break
else
else
...
...
INSTALL/ventoy_pack.sh
View file @
92db873b
...
@@ -77,9 +77,13 @@ cp $OPT ./tool/ENROLL_THIS_KEY_IN_MOKMANAGER.cer $tmpmnt/
...
@@ -77,9 +77,13 @@ cp $OPT ./tool/ENROLL_THIS_KEY_IN_MOKMANAGER.cer $tmpmnt/
mkdir
-p
$tmpmnt
/tool
mkdir
-p
$tmpmnt
/tool
cp
$OPT
./tool/i386/mount.exfat-fuse
$tmpmnt
/tool/mount.exfat-fuse_i386
# cp $OPT ./tool/i386/mount.exfat-fuse $tmpmnt/tool/mount.exfat-fuse_i386
cp
$OPT
./tool/x86_64/mount.exfat-fuse
$tmpmnt
/tool/mount.exfat-fuse_x86_64
# cp $OPT ./tool/x86_64/mount.exfat-fuse $tmpmnt/tool/mount.exfat-fuse_x86_64
cp
$OPT
./tool/aarch64/mount.exfat-fuse
$tmpmnt
/tool/mount.exfat-fuse_aarch64
# cp $OPT ./tool/aarch64/mount.exfat-fuse $tmpmnt/tool/mount.exfat-fuse_aarch64
# to save space
cp
$OPT
./tool/i386/vtoygpt
$tmpmnt
/tool/mount.exfat-fuse_i386
cp
$OPT
./tool/x86_64/vtoygpt
$tmpmnt
/tool/mount.exfat-fuse_x86_64
cp
$OPT
./tool/aarch64/vtoygpt
$tmpmnt
/tool/mount.exfat-fuse_aarch64
rm
-f
$tmpmnt
/grub/i386-pc/
*
.img
rm
-f
$tmpmnt
/grub/i386-pc/
*
.img
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment