1. Improve the Linux remount feature to make the ISO partition mountable out of the box on mainstream desktop distros.
Ventoy CI / build (push) Canceled after 0s
Mirror GitHub to Gitee / Sync-GitHub-to-Gitee (push) Canceled after 0s

2. Change the ISO partition dm name to stable /dev/mapper/VentoyPart
This commit is contained in:
longpanda
2026-10-08 11:10:13 +08:00
parent 432152813e
commit 490ed6ce0f
20 changed files with 288 additions and 71 deletions
+3 -3
View File
@@ -14,8 +14,8 @@ if dmsetup -h > /dev/null 2>&1; then
for t in *; do
if grep -q "^${VPART_MAJOR_MINOR}$" $t/dev; then
VPART=$t
echo 0 $(cat /sys/class/block/$VPART/size) linear /dev/$VPART 0 | dmsetup create $VPART
dmsetup mknodes "$VPART" > /dev/null 2>&1
echo 0 $(cat /sys/class/block/$VPART/size) linear /dev/$VPART 0 | dmsetup create VentoyPart
dmsetup mknodes "VentoyPart" > /dev/null 2>&1
break
fi
done
@@ -30,7 +30,7 @@ if dmsetup -h > /dev/null 2>&1; then
udevadm trigger --type=devices --action=add > /dev/null 2>&1
udevadm settle > /dev/null 2>&1
fi
echo "Create /dev/mapper/$VPART success"
echo "Create /dev/mapper/VentoyPart success"
fi
else
echo "dmsetup program not avaliable"