Improve ISO partition auto mount for different Linux distros.

This commit is contained in:
longpanda
2026-10-09 10:04:53 +08:00
parent 96f3210bd0
commit ab684ca049
14 changed files with 189 additions and 1 deletions
@@ -10,6 +10,9 @@ vtoy_udev_auto_hook() {
if grep -q 'break.*=.*postmount' /init; then
vtlog "udev auto before postmount"
sed "/break.*=.*postmount/i\\$BUSYBOX_PATH/sh $VTOY_PATH/hook/manjaro/ventoy-uauto-exec.sh" -i /init
elif [ -d $VT_DRACUT_HOOKS/pre-pivot ]; then
vtlog "dracut distro"
ventoy_dracut_pivot_udev_rule
fi
}