mirror of
https://github.com/ventoy/Ventoy.git
synced 2026-11-02 19:31:59 +00:00
Improve ISO partition auto mount for different Linux distros.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user