Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
774e3892
Commit
774e3892
authored
Sep 18, 2020
by
longpanda
Browse files
update VentoyWorker.sh for nvme
parent
0faba673
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
INSTALL/tool/VentoyWorker.sh
INSTALL/tool/VentoyWorker.sh
+8
-5
No files found.
INSTALL/tool/VentoyWorker.sh
View file @
774e3892
...
...
@@ -240,7 +240,10 @@ if [ "$MODE" = "install" ]; then
cluster_sectors
=
64
fi
$cmd
-n
ventoy
-s
$cluster_sectors
${
DISK
}
1
PART1
=
$(
get_disk_part_name
$DISK
1
)
PART2
=
$(
get_disk_part_name
$DISK
2
)
$cmd
-n
ventoy
-s
$cluster_sectors
${
PART1
}
vtinfo
"writing data to disk ..."
...
...
@@ -268,7 +271,7 @@ if [ "$MODE" = "install" ]; then
vtinfo
"esp partition processing ..."
sleep
1
mtpnt
=
$(
grep
"^
${
DISK
}
2
"
/proc/mounts |
awk
'{print $2}'
)
mtpnt
=
$(
grep
"^
${
PART2
}
"
/proc/mounts |
awk
'{print $2}'
)
if
[
-n
"
$mtpnt
"
]
;
then
umount
$mtpnt
>
/dev/null 2>&1
fi
...
...
@@ -278,12 +281,12 @@ if [ "$MODE" = "install" ]; then
vtdebug
"mounting part2 ...."
for
tt
in
1 2 3
;
do
if
mount
${
DISK
}
2
./tmp_mnt
;
then
if
mount
${
PART2
}
./tmp_mnt
;
then
vtdebug
"mounting part2 success"
break
fi
mtpnt
=
$(
grep
"^
${
DISK
}
2
"
/proc/mounts |
awk
'{print $2}'
)
mtpnt
=
$(
grep
"^
${
PART2
}
"
/proc/mounts |
awk
'{print $2}'
)
if
[
-n
"
$mtpnt
"
]
;
then
umount
$mtpnt
>
/dev/null 2>&1
fi
...
...
@@ -363,7 +366,7 @@ else
vtdebug
"mounting part2 ...."
for
tt
in
1 2 3
;
do
if
mount
${
DISK
}
2
./tmp_mnt
;
then
if
mount
${
PART2
}
./tmp_mnt
;
then
vtdebug
"mounting part2 success"
break
fi
...
...
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