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
fb729146
Commit
fb729146
authored
Aug 11, 2022
by
longpanda
Browse files
Fix the issue when booting latest Gentoo live. (#1770)
parent
92bd6733
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
IMG/cpio/ventoy/hook/gentoo/ventoy-hook.sh
IMG/cpio/ventoy/hook/gentoo/ventoy-hook.sh
+3
-0
No files found.
IMG/cpio/ventoy/hook/gentoo/ventoy-hook.sh
View file @
fb729146
...
@@ -24,6 +24,9 @@ if $GREP -q kaspersky /proc/version; then
...
@@ -24,6 +24,9 @@ if $GREP -q kaspersky /proc/version; then
if
[
-f
/ventoy/ventoy_persistent_map
]
;
then
if
[
-f
/ventoy/ventoy_persistent_map
]
;
then
$SED
"/sysresccd_parsecmdline[^(]*
$/
a
\
BACKSTORE_CMD='LABEL=casper-rw,noloop'"
-i
/init
$SED
"/sysresccd_parsecmdline[^(]*
$/
a
\
BACKSTORE_CMD='LABEL=casper-rw,noloop'"
-i
/init
fi
fi
elif
$GREP
-q
'setting up the root filesystem'
/init
;
then
$SED
"/setting up the root filesystem/a
\
$BUSYBOX_PATH
/sh
$VTOY_PATH
/hook/gentoo/disk_hook.sh"
-i
/init
$SED
"/setting up the root filesystem/a
\
export CDROOT_DEV=/dev/mapper/ventoy"
-i
/init
elif
[
-d
/etc/udev/rules.d
]
||
[
-d
/lib/udev/rules.d
]
;
then
elif
[
-d
/etc/udev/rules.d
]
||
[
-d
/lib/udev/rules.d
]
;
then
ventoy_systemd_udevd_work_around
ventoy_systemd_udevd_work_around
ventoy_add_udev_rule
"
$VTOY_PATH
/hook/default/udev_disk_hook.sh %k noreplace"
ventoy_add_udev_rule
"
$VTOY_PATH
/hook/default/udev_disk_hook.sh %k noreplace"
...
...
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