From: jan Date: Thu, 4 Nov 2021 17:50:05 +0000 (+0000) Subject: Fix broken "boot device cdrom" feature after a fix in seabios. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=49d91399e287437f89c499a5fe68f9c96fc9d371;p=openbsd Fix broken "boot device cdrom" feature after a fix in seabios. seabios fixes wrong LUN handling upstream. Thus, we have to adapt the LUN of our cdrom bootorder string, too. ok brynet@, dv@ --- diff --git a/usr.sbin/vmd/fw_cfg.c b/usr.sbin/vmd/fw_cfg.c index fb4379c8956..8435e3fe143 100644 --- a/usr.sbin/vmd/fw_cfg.c +++ b/usr.sbin/vmd/fw_cfg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fw_cfg.c,v 1.3 2021/06/16 16:55:02 dv Exp $ */ +/* $OpenBSD: fw_cfg.c,v 1.4 2021/11/04 17:50:05 jan Exp $ */ /* * Copyright (c) 2018 Claudio Jeker * @@ -80,7 +80,7 @@ fw_cfg_init(struct vmop_create_params *vmc) bootorder = "/pci@i0cf8/*@2\nHALT"; break; case VMBOOTDEV_CDROM: - bootorder = "/pci@i0cf8/*@4/*@0/*@0,100\nHALT"; + bootorder = "/pci@i0cf8/*@4/*@0/*@0,40000100\nHALT"; break; case VMBOOTDEV_NET: /* XXX not yet */