Optimize udev process

This commit is contained in:
longpanda
2026-10-05 23:28:02 +08:00
parent 029a0a9d16
commit a2f6e4e31f
10 changed files with 367 additions and 11 deletions
@@ -0,0 +1,15 @@
#!/bin/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