Files
Ventoy/IMG/cpio/ventoy/hook/rhel7/ventoy-uauto-hook.sh
T
longpanda 490ed6ce0f
Ventoy CI / build (push) Canceled after 0s
Mirror GitHub to Gitee / Sync-GitHub-to-Gitee (push) Canceled after 0s
1. Improve the Linux remount feature to make the ISO partition mountable out of the box on mainstream desktop distros.
2. Change the ISO partition dm name to stable /dev/mapper/VentoyPart
2026-10-08 11:10:13 +08:00

23 lines
524 B
Bash

#!/ventoy/busybox/sh
. /ventoy/hook/ventoy-hook-lib.sh
PATH=$BUSYBOX_PATH:$VTOY_PATH/tool:$PATH
vtlog "####### $0 $* ########"
vtoy_udev_auto_hook() {
if [ -e /etc/os-release ]; then
if grep -q 'ID=fedora' /etc/os-release; then
if grep -q 'VERSION_ID=[3-9][0-9]' /etc/os-release; then
vtlog "fedora distro"
ventoy_dracut_pivot_udev_rule
ventoy_dracut_pivot_selinux_off
return
fi
fi
fi
}
vtoy_udev_auto_hook