summaryrefslogtreecommitdiff
path: root/sys/dev/i2c
diff options
context:
space:
mode:
authorKlemens Nanni <kn@cvs.openbsd.org>2022-09-03 15:46:21 +0000
committerKlemens Nanni <kn@cvs.openbsd.org>2022-09-03 15:46:21 +0000
commitfbbc9884ae55b45cf361c2ca68710c9e4fc9f2e3 (patch)
tree3fe85f348ead18c2b7e786f5d291a381fa77848e /sys/dev/i2c
parent74c6a5eaf39a70dbf34149e74ac799775f90e9ea (diff)
Fix passing explicit stage files
Every platform ought to set `stages', `stage1' and optionally `stage2' in md_init(), otherwise passing explicit files results won't work as `stages' is zero-initialised and no default path is set: # installboot -nv wd0 ./ofwboot usage: installboot [-nv] [-r root] disk [stage1] installboot [-nv] -p disk This is correct synopsis and ought to work, but macppc_installboot.c (others, too) has an empty md_init(). Set stage bits to fix this: # ./obj/installboot -nv wd0 ./ofwboot Using / as root would install bootstrap on /dev/rwd0c using first-stage ./ofwboot would copy ./ofwboot to /tmp/installboot.Ymmm6QU8OJ/ofwboot Using `stage1' leads to a bit more cleanup since early MI installboot.c handles `-r', i.e. write_filesystem() no longer has needs to do the fileprefix() dance itself. This makes regress/usr.sbin/installboot pass on macppc (while being lucky or carrying miod's fix for the kernel disklabel race manifesting on vnd). OK gkoehler
Diffstat (limited to 'sys/dev/i2c')
0 files changed, 0 insertions, 0 deletions