]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - IMG/cpio/ventoy/loop/cloudready/ventoy-hook.sh
1.1.07 release
[Ventoy.git] / IMG / cpio / ventoy / loop / cloudready / ventoy-hook.sh
index 2cf658ba31da5ae8eaf7564ad7363977a8bf3414..666a4e0b150c278ea52aa254e4b9ae0c2c772c0f 100644 (file)
@@ -129,6 +129,10 @@ mount -t devtmpfs dev /newdev
 cp -a /dev/mapper/ventoy* /newdev/mapper/
 cp -a /dev/ventoy* /newdev/
 
+if [ "$VTOY_VLNK_BOOT" = "01" ]; then
+    vtLine=$($VTOY_PATH/tool/vtoydump -f /ventoy/ventoy_os_param)
+    vtdiskname=${vtLine%%#*}
+fi
 
 vtshortname="${vtdiskname#/dev/}"
 mv /newdev/${vtshortname} /newdev/backup_${vtshortname}