mirror of
https://github.com/ventoy/Ventoy.git
synced 2026-11-02 19:31:59 +00:00
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
This commit is contained in:
@@ -1,15 +1,9 @@
|
||||
#!/bin/sh
|
||||
#!/ventoy/busybox/sh
|
||||
|
||||
for vroot in sysroot newroot; do
|
||||
if [ -d $vroot/etc ]; then
|
||||
if [ -d $vroot/etc/udev/rules.d ]; then
|
||||
:
|
||||
else
|
||||
mkdir -p $vroot/etc/udev/rules.d
|
||||
fi
|
||||
|
||||
cp -a /ventoy/hook/default/90-ventoy-auto.rules $vroot/etc/udev/rules.d/
|
||||
chmod 0644 $vroot/etc/udev/rules.d/90-ventoy-auto.rules
|
||||
break
|
||||
fi
|
||||
done
|
||||
. /ventoy/hook/ventoy-hook-lib.sh
|
||||
|
||||
vtlog "####### $0 $* ########"
|
||||
|
||||
ventoy_copy_udev_auto_rules
|
||||
|
||||
$BUSYBOX_PATH/true
|
||||
|
||||
Reference in New Issue
Block a user