X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/d678e549566bd0edb39c7f9279ef3caffdafbba3..261ddcef45ede2f9440342a5b3dd474e26df1679:/IMG/cpio/ventoy/hook/blackPanther/ventoy-inotifyd-hook.sh diff --git a/IMG/cpio/ventoy/hook/blackPanther/ventoy-inotifyd-hook.sh b/IMG/cpio/ventoy/hook/blackPanther/ventoy-inotifyd-hook.sh index 3b11f7c..caa80d4 100644 --- a/IMG/cpio/ventoy/hook/blackPanther/ventoy-inotifyd-hook.sh +++ b/IMG/cpio/ventoy/hook/blackPanther/ventoy-inotifyd-hook.sh @@ -33,10 +33,8 @@ if is_inotify_ventoy_part $3; then $BUSYBOX_PATH/sh $VTOY_PATH/hook/default/udev_disk_hook.sh $3 noreplace blkdev_num_dev=$($VTOY_PATH/tool/dmsetup ls | grep ventoy | sed 's/.*(\([0-9][0-9]*\),.*\([0-9][0-9]*\).*/\1 \2/') - if ! [ -e /dev/dm-0 ]; then - mknod -m 660 /dev/dm-0 b $blkdev_num_dev - fi - blackPanther-root /dev/dm-0 + mknod -m 660 /dev/ventoy b $blkdev_num_dev + blackPanther-root /dev/ventoy set_ventoy_hook_finish else