head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.6 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.4 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.2 pkgsrc-2025Q3-base:1.1; locks; strict; comment @# @; 1.1 date 2025.08.22.09.00.13; author bouyer; state Exp; branches; next ; commitid Ltq5S1fi9LiRKH7G; desc @@ 1.1 log @Add xenkernel420 and xentools420 packages version 20250821, providing Xen kernels and tools from the stable-4.20 branch (as of 20250821). @ text @$NetBSD: patch-tools_hotplug_NetBSD_block,v 1.1 2023/11/21 11:37:03 bouyer Exp $ work around an issue in NetBSD 9.99.x kernel: pass the vnd name to vnconfig, not the path to the block device. --- tools/hotplug/NetBSD/block.orig 2022-01-31 10:42:09.000000000 +0100 +++ tools/hotplug/NetBSD/block 2022-05-30 10:50:42.821527086 +0200 @@@@ -64,8 +64,9 @@@@ for disk in $available_disks; do eval status=\$$disk if [ "$status" = "free" ] && \ - vnconfig /dev/${disk}d $xparams >/dev/null; then + vnconfig ${disk} $xparams >/dev/null; then device=/dev/${disk}d + vnd_device=$disk break fi done @@@@ -73,7 +74,7 @@@@ if [ x$device = x ] ; then error "no available vnd device" fi - xenstore-write $xpath/vnd $device + xenstore-write $xpath/vnd $vnd_device ;; phy) device=$xparams @