Change the new root path to absolute

This commit is contained in:
longpanda
2026-10-12 14:39:33 +08:00
parent 32df278c7a
commit 24329a996a
+1 -1
View File
@@ -1018,7 +1018,7 @@ ventoy_init_udev_auto_rules() {
}
ventoy_new_root_dir() {
for vroot in sysroot newroot new_root root live/aufs pup_new; do
for vroot in /sysroot /newroot /new_root /root /live/aufs /pup_new; do
if [ -d $vroot/etc/udev/rules.d ]; then
echo "$vroot"
return