fix the lvm issue

This commit is contained in:
longpanda
2022-04-29 00:51:56 +08:00
parent 60588c8442
commit 3ebc610e7d
5 changed files with 21 additions and 33 deletions

View File

@@ -25,10 +25,11 @@ VTPATH_OLD=$PATH; PATH=$BUSYBOX_PATH:$VTOY_PATH/tool:$PATH
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