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
12e8ae26
Commit
12e8ae26
authored
Feb 18, 2021
by
longpanda
Browse files
misc update
parent
82977d9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
13 deletions
+12
-13
.github/workflows/sync2gitee.yml
.github/workflows/sync2gitee.yml
+0
-2
INSTALL/tool/VentoyWorker.sh
INSTALL/tool/VentoyWorker.sh
+12
-11
No files found.
.github/workflows/sync2gitee.yml
View file @
12e8ae26
...
...
@@ -4,8 +4,6 @@ on:
# Triggers the workflow on push or pull request events but only for the main branch
push
:
branches
:
[
master
]
pull_request
:
branches
:
[
master
]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch
:
...
...
INSTALL/tool/VentoyWorker.sh
View file @
12e8ae26
...
...
@@ -75,8 +75,8 @@ fi
if
[
-e
/sys/class/block/
${
DISK
#/dev/
}
/start
]
;
then
vterr
"
$DISK
is a partition, please use the whole disk."
echo
"For example:"
vterr
" sudo sh Ventoy2Disk.sh -i /dev/sd
X
1 <=== This is wrong"
vtinfo
" sudo sh Ventoy2Disk.sh -i /dev/sd
X
<=== This is right"
vterr
" sudo sh Ventoy2Disk.sh -i /dev/sd
b
1 <=== This is wrong"
vtinfo
" sudo sh Ventoy2Disk.sh -i /dev/sd
b
<=== This is right"
echo
""
exit
1
fi
...
...
@@ -90,15 +90,6 @@ if [ -n "$RESERVE_SPACE" -a "$MODE" = "install" ]; then
fi
fi
#check access
if
dd
if
=
"
$DISK
"
of
=
/dev/null
bs
=
1
count
=
1
>
/dev/null 2>&1
;
then
vtdebug
"root permission check ok ..."
else
vterr
"Failed to access
$DISK
, maybe root privilege is needed!"
echo
''
exit
1
fi
vtdebug
"MODE=
$MODE
FORCE=
$FORCE
RESERVE_SPACE=
$RESERVE_SPACE
RESERVE_SIZE_MB=
$RESERVE_SIZE_MB
"
#check tools
...
...
@@ -153,6 +144,16 @@ if swapon --help 2>&1 | grep -q '^ \-s,'; then
fi
fi
#check access
if
dd
if
=
"
$DISK
"
of
=
/dev/null
bs
=
1
count
=
1
>
/dev/null 2>&1
;
then
vtdebug
"root permission check ok ..."
else
vterr
"Failed to access
$DISK
, maybe root privilege is needed!"
echo
''
exit
1
fi
#check tmp_mnt directory
if
[
-d
./tmp_mnt
]
;
then
vtdebug
"There is a tmp_mnt directory, now delete it."
...
...
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