Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 14th June 2022
J65nko J65nko is offline
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,009
Default Sysupgrade 6.9 -> 7.0 and /etc/boot.conf 'set image'

I had a disk with OpenBSD 6.9 (rather easy to slot in/out my HP Proliant server).

First I decided to do a clean new install with OpenBSD 7.1 using the 7.1 bsd.rd.
Usually I lose the race at the beginning of the boot to type a space so I can enter "bsd.rd":
Using drive 0, partition 3.
probing: pc0 com0 com1 mem[638K 1918M a20=on]
disk: hd0+ hd1+
>> OpenBSD/amd64 BOOT 3.33
boot> bsd.rd
So I entered set image /bsd.rd in /etc/boot.conf to make sure that there was no race that I tend to lose.....

The automatic (disklabel) partitioning of 7.1 was not exactly the same as that of 6.9. Because I wanted to keep my /home partition by not specifying a mount point (that way that partition will not get "newfs'ed"), I aborted the install and decided to try an upgrade.
Before rebooting the system, I selected the shell prompt and used ed(1) to edit /etc/boot.conf and did a s/\.rd// to it read set image /bsd.
Then 2 days later I created an extra backup of my /home directory and went the sysupgrade(8) way.

And that did not work at all. After fetching the upgrade file sets, the system rebooted and I still ended up in 6.9. Tried again .Same result ......

I saw while booting something like "upgrade kernel detected, switching to bsd.upgrade". And then I understood why it is was not working.....
Because I still had set image /bsd in /etc/boot.conf and that overrode the selection of the bsd.upgrade file .......
It is logical that the boot process honors the /etc/boot.conf settings. For example in this file you also configure the serial console settings.

Lesson learned: when you want to do an automatic upgrade with sysupgrade(8) make sure you don't have a set image /bsd in /etc/boot.conf.
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sysupgrade vs fresh installation TheTKS OpenBSD Installation and Upgrading 10 24th February 2021 03:47 PM
I burn an image on a pendrive with dd, but it doesn't boot joancatala OpenBSD General 8 8th December 2019 05:17 PM
Is there an update of sysupgrade available? darktrym NetBSD Package System (pkgsrc) 2 20th September 2019 04:59 PM
sysctl.conf settings not loading on boot Kuboaa FreeBSD General 2 18th November 2010 08:35 AM
I can't make FreeBSD floppy/boot image disks under Windows with fdimage Turquoise88 FreeBSD Installation and Upgrading 4 12th November 2008 08:39 PM

All times are GMT. The time now is 01:00 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick