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
b9b68526
"examples/pytorch/hilander/scripts/train_inat.sh" did not exist on "66ad774f9eb7cbbb18b1c98f4abce43c2fb63170"
Commit
b9b68526
authored
Dec 20, 2021
by
longpanda
Browse files
1.0.63 release
parent
4a44a828
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
63 additions
and
4 deletions
+63
-4
.github/ISSUE_TEMPLATE/issue_template.yml
.github/ISSUE_TEMPLATE/issue_template.yml
+1
-1
INSTALL/grub/grub.cfg
INSTALL/grub/grub.cfg
+3
-1
INSTALL/tool/VentoyWorker.sh
INSTALL/tool/VentoyWorker.sh
+17
-2
INSTALL/tool/ventoy_lib.sh
INSTALL/tool/ventoy_lib.sh
+42
-0
No files found.
.github/ISSUE_TEMPLATE/issue_template.yml
View file @
b9b68526
...
...
@@ -21,7 +21,7 @@ body:
attributes
:
label
:
Ventoy Version
description
:
What version of ventoy are you running?
placeholder
:
1.0.6
2
placeholder
:
1.0.6
3
validations
:
required
:
true
-
type
:
dropdown
...
...
INSTALL/grub/grub.cfg
View file @
b9b68526
...
...
@@ -166,6 +166,8 @@ function vt_check_compatible_pe {
function vt_check_compatible_linux {
if vt_str_begin "$vt_volume_id" "embootkit"; then
set ventoy_compatible=YES
elif [ -e "$1/casper/tinycore.gz" ]; then
set ventoy_compatible=YES
fi
return
...
...
@@ -2020,7 +2022,7 @@ function img_unsupport_menuentry {
#############################################################
#############################################################
set VENTOY_VERSION="1.0.6
2
"
set VENTOY_VERSION="1.0.6
3
"
#ACPI not compatible with Window7/8, so disable by default
set VTOY_PARAM_NO_ACPI=1
...
...
INSTALL/tool/VentoyWorker.sh
View file @
b9b68526
...
...
@@ -291,8 +291,23 @@ if [ "$MODE" = "install" -a -z "$NONDESTRUCTIVE" ]; then
dd
status
=
none
conv
=
fsync
if
=
/dev/zero
of
=
$DISK
bs
=
512
count
=
32
seek
=
$part2_start_sector
#format part1
vtinfo
"Format partition 1 ..."
mkexfatfs
-n
"
$VTNEW_LABEL
"
-s
$cluster_sectors
${
PART1
}
wait_and_create_part
${
PART1
}
${
PART2
}
if
[
-b
${
PART1
}
]
;
then
vtinfo
"Format partition 1
${
PART1
}
..."
mkexfatfs
-n
"
$VTNEW_LABEL
"
-s
$cluster_sectors
${
PART1
}
if
[
$?
-ne
0
]
;
then
echo
"mkexfatfs failed, now retry..."
mkexfatfs
-n
"
$VTNEW_LABEL
"
-s
$cluster_sectors
${
PART1
}
if
[
$?
-ne
0
]
;
then
echo
"######### mkexfatfs failed, exit ########"
exit
1
fi
else
echo
"mkexfatfs success"
fi
else
vterr
"
${
PART1
}
NOT exist"
fi
vtinfo
"writing data to disk ..."
dd
status
=
none
conv
=
fsync
if
=
./boot/boot.img
of
=
$DISK
bs
=
1
count
=
446
...
...
INSTALL/tool/ventoy_lib.sh
View file @
b9b68526
...
...
@@ -206,6 +206,48 @@ get_disk_ventoy_version() {
ventoy_false
}
wait_and_create_part
()
{
vPART1
=
$1
vPART2
=
$2
echo
'Wait for partitions ...'
for
i
in
0 1 2 3 4 5 6 7 8 9
;
do
if
ls
-l
$vPART1
2>/dev/null |
grep
-q
'^b'
;
then
if
ls
-l
$vPART2
2>/dev/null |
grep
-q
'^b'
;
then
break
fi
else
echo
"Wait for
$vPART1
/
$vPART2
..."
sleep
1
fi
done
if
ls
-l
$vPART1
2>/dev/null |
grep
-q
'^b'
;
then
echo
"
$vPART1
exist OK"
else
MajorMinor
=
$(
sed
"s/:/ /"
/sys/class/block/
${
vPART1
#/dev/
}
/dev
)
echo
"mknod -m 0660
$vPART1
b
$MajorMinor
..."
mknod
-m
0660
$vPART1
b
$MajorMinor
fi
if
ls
-l
$vPART2
2>/dev/null |
grep
-q
'^b'
;
then
echo
"
$vPART2
exist OK"
else
MajorMinor
=
$(
sed
"s/:/ /"
/sys/class/block/
${
vPART2
#/dev/
}
/dev
)
echo
"mknod -m 0660
$vPART2
b
$MajorMinor
..."
mknod
-m
0660
$vPART2
b
$MajorMinor
fi
if
ls
-l
$vPART1
2>/dev/null |
grep
-q
'^b'
;
then
if
ls
-l
$vPART2
2>/dev/null |
grep
-q
'^b'
;
then
echo
"partition exist OK"
fi
else
echo
"[FAIL]
$vPART1
/
$vPART2
does not exist"
exit
1
fi
}
format_ventoy_disk_mbr
()
{
reserve_mb
=
$1
DISK
=
$2
...
...
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