X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/d0edcc0ef0b6ef695ce96d2be84f1ebb02453b51..bf4e014023e6fd7b117b4f086fc0c190d46ecdcf:/IMG/cpio/ventoy/hook/suse/ventoy-hook.sh diff --git a/IMG/cpio/ventoy/hook/suse/ventoy-hook.sh b/IMG/cpio/ventoy/hook/suse/ventoy-hook.sh index 19b9068..9574efe 100644 --- a/IMG/cpio/ventoy/hook/suse/ventoy-hook.sh +++ b/IMG/cpio/ventoy/hook/suse/ventoy-hook.sh @@ -31,5 +31,14 @@ fi #echo "install: hd:/?device=/dev/mapper/ventoy" >> /info-ventoy #$SED "1 iinfo: file:/info-ventoy" -i /linuxrc.config -ventoy_systemd_udevd_work_around -ventoy_add_udev_rule "$VTOY_PATH/hook/suse/udev_disk_hook.sh %k" +if [ -e /etc/initrd.functions ] && $GREP -q 'HPIP' /etc/initrd.functions; then + echo "HPIP" >> $VTLOG + $BUSYBOX_PATH/mkdir /dev + $BUSYBOX_PATH/mknod -m 660 /dev/console b 5 1 + $SED "/CD_DEVICES=/a $BUSYBOX_PATH/sh $VTOY_PATH/hook/suse/disk_hook.sh" -i /etc/initrd.functions + $SED "/CD_DEVICES=/a CD_DEVICES=\"/dev/ventoy \$CD_DEVICES\"" -i /etc/initrd.functions +else + echo "SUSE" >> $VTLOG + ventoy_systemd_udevd_work_around + ventoy_add_udev_rule "$VTOY_PATH/hook/suse/udev_disk_hook.sh %k" +fi