X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/5291d66736e2fbbea04a5496b960fa4cb3599902..b4a059dd6896b4df24ef23e826366536bb030337:/IMG/cpio/ventoy/hook/ventoy-hook-lib.sh diff --git a/IMG/cpio/ventoy/hook/ventoy-hook-lib.sh b/IMG/cpio/ventoy/hook/ventoy-hook-lib.sh index 88bfe73..ad05c7c 100644 --- a/IMG/cpio/ventoy/hook/ventoy-hook-lib.sh +++ b/IMG/cpio/ventoy/hook/ventoy-hook-lib.sh @@ -225,7 +225,11 @@ ventoy_check_dm_module() { ventoy_need_dm_patch() { if [ "$VTOY_LINUX_REMOUNT" != "01" ]; then - $BUSYBOX_PATH/false; return + if $GREP -q 'VTOY_LINUX_REMOUNT=1' /proc/cmdline; then + : + else + $BUSYBOX_PATH/false; return + fi fi if $GREP -q 'device-mapper' /proc/devices; then