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
a5e06412
Unverified
Commit
a5e06412
authored
Sep 14, 2022
by
crim50n
Committed by
GitHub
Sep 14, 2022
Browse files
Update to support a future version of MiniOS. (#1841)
* Update minios-hook.sh * Update minios-disk.sh
parent
2c65eec9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
IMG/cpio/ventoy/hook/debian/minios-disk.sh
IMG/cpio/ventoy/hook/debian/minios-disk.sh
+1
-1
IMG/cpio/ventoy/hook/debian/minios-hook.sh
IMG/cpio/ventoy/hook/debian/minios-hook.sh
+1
-1
No files found.
IMG/cpio/ventoy/hook/debian/minios-disk.sh
View file @
a5e06412
...
@@ -33,7 +33,7 @@ ventoy_os_install_dmsetup_by_fuse() {
...
@@ -33,7 +33,7 @@ ventoy_os_install_dmsetup_by_fuse() {
vtoy_fuse_iso
-f
$VTOY_PATH
/ventoy_dm_table
-m
$VTOY_PATH
/mnt/fuse
vtoy_fuse_iso
-f
$VTOY_PATH
/ventoy_dm_table
-m
$VTOY_PATH
/mnt/fuse
mount
-t
iso9660
$VTOY_PATH
/mnt/fuse/ventoy.iso
$VTOY_PATH
/mnt/iso
mount
-t
iso9660
$VTOY_PATH
/mnt/fuse/ventoy.iso
$VTOY_PATH
/mnt/iso
mount
-t
squashfs
$VTOY_PATH
/mnt/iso/minios/0
1
-core
*
.sb
$VTOY_PATH
/mnt/squashfs
mount
-t
squashfs
$VTOY_PATH
/mnt/iso/minios/0
*
-core
*
.sb
$VTOY_PATH
/mnt/squashfs
KoName
=
$(
ls
$VTOY_PATH
/mnt/squashfs/lib/modules/
$2
/kernel/drivers/md/dm-mod.ko
*
)
KoName
=
$(
ls
$VTOY_PATH
/mnt/squashfs/lib/modules/
$2
/kernel/drivers/md/dm-mod.ko
*
)
vtlog
"insmod
$KoName
"
vtlog
"insmod
$KoName
"
...
...
IMG/cpio/ventoy/hook/debian/minios-hook.sh
View file @
a5e06412
...
@@ -20,5 +20,5 @@
...
@@ -20,5 +20,5 @@
if
[
-f
/lib/livekitlib
]
&&
$GREP
-q
'debug_log.*find_data_try'
/lib/livekitlib
;
then
if
[
-f
/lib/livekitlib
]
&&
$GREP
-q
'debug_log.*find_data_try'
/lib/livekitlib
;
then
$SED
"/debug_log.*find_data_try/a
\
$BUSYBOX_PATH
/sh
$VTOY_PATH
/hook/debian/minios-disk.sh"
-i
/lib/livekitlib
$SED
"/debug_log.*find_data_try/a
\
$BUSYBOX_PATH
/sh
$VTOY_PATH
/hook/debian/minios-disk.sh"
-i
/lib/livekitlib
else
else
$SED
"/find_data/i
\
$BUSYBOX_PATH
/sh
$VTOY_PATH
/hook/debian/minios-disk.sh"
-i
/init
$SED
"/find_data/i
\
$BUSYBOX_PATH
/sh
$VTOY_PATH
/hook/debian/minios-disk.sh"
-i
/init
fi
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