From: longpanda Date: Sat, 25 May 2024 10:13:52 +0000 (+0800) Subject: Fix the issue that VTOY_LINUX_REMOUNT option does not take effect in latest openSUSE... X-Git-Tag: v1.0.99~5 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/commitdiff_plain/0ffb1b15ef6fcbc8774133799f463bdfdbb15b4d Fix the issue that VTOY_LINUX_REMOUNT option does not take effect in latest openSUSE. (#2551) --- diff --git a/IMG/cpio/ventoy/hook/ventoy-hook-lib.sh b/IMG/cpio/ventoy/hook/ventoy-hook-lib.sh index 2ebf801..5c778e8 100644 --- a/IMG/cpio/ventoy/hook/ventoy-hook-lib.sh +++ b/IMG/cpio/ventoy/hook/ventoy-hook-lib.sh @@ -335,8 +335,9 @@ ventoy_dm_patch() { $CAT /proc/kallsyms | $BUSYBOX_PATH/sort > $VTOY_PATH/kallsyms if $GREP -m1 -q 'open_table_device.isra' $VTOY_PATH/kallsyms; then - vtLine=$($VTOY_PATH/tool/vtoyksym open_table_device.isra $VTOY_PATH/kallsyms) - vtlog "get open_table_device.isra address $vtLine" + vtISRA=$($GREP -m1 'open_table_device.isra' $VTOY_PATH/kallsyms | $AWK '{print $3}') + vtLine=$($VTOY_PATH/tool/vtoyksym $vtISRA $VTOY_PATH/kallsyms) + vtlog "get $vtISRA address $vtLine" else vtLine=$($VTOY_PATH/tool/vtoyksym dm_get_table_device $VTOY_PATH/kallsyms) vtlog "get dm_get_table_device address $vtLine"