X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/58a93cdb4082bb42366c480890705d9786602b4a..84b2ee7ee3b47f01471691fa8b85d9e0bebf2c60:/IMG/cpio/ventoy/hook/daphile/disk_hook.sh diff --git a/IMG/cpio/ventoy/hook/daphile/disk_hook.sh b/IMG/cpio/ventoy/hook/daphile/disk_hook.sh index 3f515bf..652f942 100644 --- a/IMG/cpio/ventoy/hook/daphile/disk_hook.sh +++ b/IMG/cpio/ventoy/hook/daphile/disk_hook.sh @@ -19,7 +19,9 @@ . /ventoy/hook/ventoy-hook-lib.sh -# Just for KVM test enviroment +/sbin/mdev -s + +# Just for KVM test environment $BUSYBOX_PATH/modprobe virtio_blk 2>/dev/null $BUSYBOX_PATH/modprobe virtio_pci 2>/dev/null @@ -34,3 +36,6 @@ for i in 0 1 2 3 4 5 6 7 8 9; do done ventoy_udev_disk_common_hook "${vtdiskname#/dev/}2" "noreplace" + +$BUSYBOX_PATH/rm -f /dev/dm-* +