blkdev_num=$(dmsetup ls | grep ventoy | sed 's/.*(\([0-9][0-9]*\),.*\([0-9][0-9]*\).*/\1:\2/')
vtDM=$(ventoy_find_dm_id ${blkdev_num})
+[ -e /dev/ventoy ] || cp -a /dev/$vtDM /dev/ventoy
if [ -e /sbin/anaconda-diskroot ]; then
- vtlog "set anaconda-diskroot ..."
- /sbin/anaconda-diskroot /dev/dm-0
+ vtlog "set anaconda-diskroot /dev/ventoy ..."
+ /sbin/anaconda-diskroot /dev/ventoy
fi
PATH=$VTPATH_OLD