]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - IMG/cpio/ventoy/hook/rhel7/ventoy-timeout.sh
fix the lvm issue
[Ventoy.git] / IMG / cpio / ventoy / hook / rhel7 / ventoy-timeout.sh
index 5fa98f8b0d18e03b9c374ac6a685fad5358d8431..77260fecb9c360434fd5bf19b717a0809b757f0e 100644 (file)
@@ -25,8 +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})
 
 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
 
 
-vtlog "diskroot $vtDM ..."
-/sbin/initqueue --settled --onetime --name anaconda-diskroot anaconda-diskroot  /dev/$vtDM
+if [ -e /sbin/anaconda-diskroot ]; then
+    vtlog "set anaconda-diskroot /dev/ventoy ..."
+    /sbin/anaconda-diskroot /dev/ventoy
+fi
 
 PATH=$VTPATH_OLD
 
 PATH=$VTPATH_OLD