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
73c196a8
"tests/git@developer.sourcefind.cn:OpenDAS/mmdetection3d.git" did not exist on "1039ad0e9ed9893e60238f8936dbfae96ea6e3cb"
Unverified
Commit
73c196a8
authored
May 24, 2020
by
longpanda
Committed by
GitHub
May 24, 2020
Browse files
Update Ventoy2Disk.sh
parent
487ffc67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
INSTALL/Ventoy2Disk.sh
INSTALL/Ventoy2Disk.sh
+15
-4
No files found.
INSTALL/Ventoy2Disk.sh
View file @
73c196a8
...
@@ -110,6 +110,13 @@ if ! check_tool_work_ok; then
...
@@ -110,6 +110,13 @@ if ! check_tool_work_ok; then
exit
1
exit
1
fi
fi
testEF
=
$(
echo
-en
'\xEF'
| ./tool/hexdump
-n
1
-e
'1/1 "%02X"'
)
if
[
"
$testEF
"
!=
"EF"
]
;
then
vtdebug
"testEF=##
${
testEF
}
##"
vterr
"There is something wrong with the interpreter !"
exit
1
fi
grep
"^
$DISK
"
/proc/mounts |
while
read
mtline
;
do
grep
"^
$DISK
"
/proc/mounts |
while
read
mtline
;
do
mtpnt
=
$(
echo
$mtline
|
awk
'{print $2}'
)
mtpnt
=
$(
echo
$mtline
|
awk
'{print $2}'
)
vtdebug
"Trying to umount
$mtpnt
..."
vtdebug
"Trying to umount
$mtpnt
..."
...
@@ -139,9 +146,13 @@ fi
...
@@ -139,9 +146,13 @@ fi
if
[
"
$MODE
"
=
"install"
]
;
then
if
[
"
$MODE
"
=
"install"
]
;
then
vtdebug
"install ventoy ..."
vtdebug
"install ventoy ..."
if
!
fdisk
-v
>
/dev/null 2>&1
;
then
if
parted
-v
>
/dev/null 2>&1
;
then
vterr
"fdisk is needed by ventoy installation, but is not found in the system."
PARTTOOL
=
'parted'
elif
fdisk
-v
>
/dev/null 2>&1
;
then
PARTTOOL
=
'fdisk'
else
vterr
"Both parted and fdisk are not found in the sysstem, Ventoy can't create new partition."
cd
$OLDDIR
cd
$OLDDIR
exit
1
exit
1
fi
fi
...
@@ -205,7 +216,7 @@ if [ "$MODE" = "install" ]; then
...
@@ -205,7 +216,7 @@ if [ "$MODE" = "install" ]; then
exit
1
exit
1
fi
fi
format_ventoy_disk
$DISK
format_ventoy_disk
$DISK
$PARTTOOL
# format part1
# format part1
if
ventoy_is_linux64
;
then
if
ventoy_is_linux64
;
then
...
...
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