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
3d1dc81f
Commit
3d1dc81f
authored
Apr 29, 2022
by
longpanda
Browse files
fix lvm issue
parent
3ebc610e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
IMG/cpio/ventoy/hook/rhel7/ventoy-inotifyd-hook.sh
IMG/cpio/ventoy/hook/rhel7/ventoy-inotifyd-hook.sh
+3
-4
IMG/cpio/ventoy/hook/rhel7/ventoy-timeout.sh
IMG/cpio/ventoy/hook/rhel7/ventoy-timeout.sh
+4
-3
No files found.
IMG/cpio/ventoy/hook/rhel7/ventoy-inotifyd-hook.sh
View file @
3d1dc81f
...
@@ -40,11 +40,10 @@ if is_inotify_ventoy_part $3; then
...
@@ -40,11 +40,10 @@ if is_inotify_ventoy_part $3; then
$BUSYBOX_PATH
/sh
$VTOY_PATH
/hook/default/udev_disk_hook.sh
$3
$vtReplaceOpt
$BUSYBOX_PATH
/sh
$VTOY_PATH
/hook/default/udev_disk_hook.sh
$3
$vtReplaceOpt
blkdev_num
=
$(
$VTOY_PATH
/tool/dmsetup
ls
|
grep
ventoy |
sed
's/.*(\([0-9][0-9]*\),.*\([0-9][0-9]*\).*/\1:\2/'
)
blkdev_num_mknod
=
$(
$VTOY_PATH
/tool/dmsetup
ls
|
$GREP
ventoy |
sed
's/.*(\([0-9][0-9]*\),.*\([0-9][0-9]*\).*/\1 \2/'
)
vtDM
=
$(
ventoy_find_dm_id
${
blkdev_num
}
)
$BUSYBOX_PATH
/mknod
-m
660 /dev/ventoy b
$blkdev_num_mknod
cp
-a
/dev/
$vtDM
/dev/ventoy
$BUSYBOX_PATH
/modprobe isofs
>
/dev/null 2>&1
$BUSYBOX_PATH
/modprobe isofs
>
/dev/null 2>&1
vtlog
"mknod /dev/ventoy
$blkdev_num_mknod
"
vtGenRulFile
=
'/etc/udev/rules.d/99-live-squash.rules'
vtGenRulFile
=
'/etc/udev/rules.d/99-live-squash.rules'
if
[
-e
$vtGenRulFile
]
&&
$GREP
-q
dmsquash
$vtGenRulFile
;
then
if
[
-e
$vtGenRulFile
]
&&
$GREP
-q
dmsquash
$vtGenRulFile
;
then
...
...
IMG/cpio/ventoy/hook/rhel7/ventoy-timeout.sh
View file @
3d1dc81f
...
@@ -23,9 +23,10 @@ vtlog "##### $0 $* ..."
...
@@ -23,9 +23,10 @@ vtlog "##### $0 $* ..."
VTPATH_OLD
=
$PATH
;
PATH
=
$BUSYBOX_PATH
:
$VTOY_PATH
/tool:
$PATH
VTPATH_OLD
=
$PATH
;
PATH
=
$BUSYBOX_PATH
:
$VTOY_PATH
/tool:
$PATH
blkdev_num
=
$(
dmsetup
ls
|
grep
ventoy |
sed
's/.*(\([0-9][0-9]*\),.*\([0-9][0-9]*\).*/\1:\2/'
)
if
[
!
-e
/dev/ventoy
]
;
then
vtDM
=
$(
ventoy_find_dm_id
${
blkdev_num
}
)
blkdev_num_mknod
=
$(
dmsetup
ls
|
grep
ventoy |
sed
's/.*(\([0-9][0-9]*\),.*\([0-9][0-9]*\).*/\1 \2/'
)
[
-e
/dev/ventoy
]
||
cp
-a
/dev/
$vtDM
/dev/ventoy
mknod
-m
660 /dev/ventoy b
$blkdev_num_mknod
fi
if
[
-e
/sbin/anaconda-diskroot
]
;
then
if
[
-e
/sbin/anaconda-diskroot
]
;
then
vtlog
"set anaconda-diskroot /dev/ventoy ..."
vtlog
"set anaconda-diskroot /dev/ventoy ..."
...
...
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