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
0585d83a
Commit
0585d83a
authored
Oct 07, 2022
by
longpanda
Browse files
Fix the issue that VTOY_LINUX_REMOUNT=1 does not work with Batocera 35 (#1878)
parent
261ddcef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
1 deletion
+30
-1
IMG/cpio/ventoy/loop/batocera/ventoy-disk.sh
IMG/cpio/ventoy/loop/batocera/ventoy-disk.sh
+30
-1
No files found.
IMG/cpio/ventoy/loop/batocera/ventoy-disk.sh
View file @
0585d83a
...
...
@@ -37,9 +37,38 @@ if [ "$vtdiskname" = "unknown" ]; then
fi
ventoy_udev_disk_common_hook
"
${
vtdiskname
#/dev/
}
2"
"noreplace"
ventoy_create_dev_ventoy_part
if
ventoy_need_dm_patch
;
then
vtlog
"extract a ko file"
mkdir
-p
/ventoy/tmpmnt1 /ventoy/tmpmnt2
mount /dev/ventoy1 /ventoy/tmpmnt1
mount /ventoy/tmpmnt1/boot/batocera /ventoy/tmpmnt2
vtKV
=
$(
uname
-r
)
mkdir
-p
/lib/modules/
$vtKV
/kernel/
vtKO
=
$(
find
"/ventoy/tmpmnt2/lib/modules/
$vtKV
/kernel/fs/"
-name
"*.ko*"
|
head
-n1
)
cp
-a
$vtKO
/lib/modules/
$vtKV
/kernel/
vtlog
"vtKV=
$vtKV
vtKO=
$vtKO
"
umount /ventoy/tmpmnt2
umount /ventoy/tmpmnt1
vtPartid
=
1
cat
/vtoy_dm_table |
while
read
vtline
;
do
dmsetup remove ventoy
$vtPartid
vtPartid
=
$(
expr
$vtPartid
+ 1
)
done
dmsetup remove ventoy
vtlog
"Recreate device-mapper"
ventoy_udev_disk_common_hook
"
${
vtdiskname
#/dev/
}
2"
"noreplace"
ventoy_create_dev_ventoy_part
fi
PATH
=
$VTPATH_OLD
set_ventoy_hook_finish
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