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
e91b315f
"examples/vscode:/vscode.git/clone" did not exist on "55614f188b0528e2105e9d50ee3bd7e95ae40345"
Commit
e91b315f
authored
Jun 26, 2020
by
longpanda
Browse files
fix bug when update Ventoy in some Linux distros.
parent
1cbe4c81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
INSTALL/tool/VentoyWorker.sh
INSTALL/tool/VentoyWorker.sh
+2
-2
No files found.
INSTALL/tool/VentoyWorker.sh
View file @
e91b315f
...
@@ -293,6 +293,8 @@ else
...
@@ -293,6 +293,8 @@ else
fi
fi
PART2
=
$(
get_disk_part_name
$DISK
2
)
PART2
=
$(
get_disk_part_name
$DISK
2
)
SHORT_PART2
=
${
PART2
#/dev/
}
part2_start
=
$(
cat
/sys/class/block/
$SHORT_PART2
/start
)
dd
status
=
none
conv
=
fsync
if
=
./boot/boot.img
of
=
$DISK
bs
=
1
count
=
440
dd
status
=
none
conv
=
fsync
if
=
./boot/boot.img
of
=
$DISK
bs
=
1
count
=
440
...
@@ -307,8 +309,6 @@ else
...
@@ -307,8 +309,6 @@ else
fi
fi
./tool/xzcat ./boot/core.img.xz |
dd
status
=
none
conv
=
fsync
of
=
$DISK
bs
=
512
count
=
2047
seek
=
1
./tool/xzcat ./boot/core.img.xz |
dd
status
=
none
conv
=
fsync
of
=
$DISK
bs
=
512
count
=
2047
seek
=
1
part2_start
=
$(
cat
/sys/class/block/
${
PART2
#/dev/
}
/start
)
./tool/xzcat ./ventoy/ventoy.disk.img.xz |
dd
status
=
none
conv
=
fsync
of
=
$DISK
bs
=
512
count
=
$VENTOY_SECTOR_NUM
seek
=
$part2_start
./tool/xzcat ./ventoy/ventoy.disk.img.xz |
dd
status
=
none
conv
=
fsync
of
=
$DISK
bs
=
512
count
=
$VENTOY_SECTOR_NUM
seek
=
$part2_start
sync
sync
...
...
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