fix lvm issue

This commit is contained in:
longpanda
2022-04-29 01:13:04 +08:00
parent 3ebc610e7d
commit 3d1dc81fda
2 changed files with 7 additions and 7 deletions

View File

@@ -23,9 +23,10 @@ vtlog "##### $0 $* ..."
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 /dev/ventoy ]; then
blkdev_num_mknod=$(dmsetup ls | grep ventoy | sed 's/.*(\([0-9][0-9]*\),.*\([0-9][0-9]*\).*/\1 \2/')
mknod -m 660 /dev/ventoy b $blkdev_num_mknod
fi
if [ -e /sbin/anaconda-diskroot ]; then
vtlog "set anaconda-diskroot /dev/ventoy ..."