DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 11th August 2015
e1-531g e1-531g is offline
VPN Cryptographer
 
Join Date: Mar 2014
Posts: 448
Default Upgrading encrypted 5.7 stable to -current

Hello
I have installed OpenBSD 5.7 release with full disk encryption. Since then I updated to stable using M:Tier. Now I want to upgrade to current (using snapshots). I downloaded miniroot58.fs, checked sha256sum, dd it to pendrive and boot-ed from it. I chose Upgrade. Unfortunetely upgrade script tells me that have only sd0 and sd1 drives. sd0 is physical HDD and sd1 is pendrive.
Dmesg tells me that physical HDD is on sd0. Pendrive is attached at sd1.
I tried point upgrade script at sd0.

Code:
Root disk: sd0
root filesystem: rd0a
checking filesystem ... OK
mounting root filesystem (  mount_ffs /dev/sd0a on /mnt) : device busy. Failed.
I suppose that I need manually mount filesystems and then start upgrade process. Is there a way to manually mount encrypted filesystems created by bioctl/softraid?

My /etc/fstab:
Code:
5e133a9f96314b03.b none swap sw
5e133a9f96314b03.a / ffs rw 1 1
5e133a9f96314b03.h /home ffs rw,softdep,nodev,nosuid 1 2
5e133a9f96314b03.e /usr ffs rw,nodev 1 2
5e133a9f96314b03.d /var ffs rw,softdep,nodev,nosuid 1 2
Have a nice day
Reply With Quote
  #2   (View Single Post)  
Old 11th August 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,383
Default

The RAMDISK kernel (bsd.rd) requires you to manually define softraid devices. Repeat similar steps to creating the FDE environment.

Assuming your RAID partition on sd0 is "d", and used passphrase without a keydisk, you might do something like this:
  1. Boot the RAMDISK kernel
  2. Select the [S]hell
  3. cd /dev
  4. sh MAKEDEV sd1 sd2
  5. bioctl -c C -l /dev/sd0d softraid0

    you will be prompted for your passphrase.
  6. cd /
  7. upgrade

Last edited by jggimi; 11th August 2015 at 11:04 AM. Reason: define, not mount
Reply With Quote
  #3   (View Single Post)  
Old 11th August 2015
TronDD TronDD is offline
Package Pilot
 
Join Date: Sep 2014
Posts: 179
Default

Is there a reason you're not using the bsd.rd from the snapshot and booting off the hard drive?

I upgrade using the bsd.rd so the normal boot process prompts for my passphrase and mounts my encrypted disk. Then at the boot> prompt, I specify the bsd.rd and go.

Tim.
Reply With Quote
  #4   (View Single Post)  
Old 11th August 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,383
Default

OK, I'll correct my statement above. Booting the RAMDISK kernel from separate installation media requires the admin to manually provision any softraid devices.
Reply With Quote
  #5   (View Single Post)  
Old 11th August 2015
denta denta is offline
Shell Scout
 
Join Date: Nov 2009
Location: Sweden
Posts: 95
Default

I would probably go with what jggimi suggested, but possibly with the latest snapshot bsd.rd instead, and reinstall whatever packages are needed. The process is so simple I find it prefferable to "upgrades".
Reply With Quote
  #6   (View Single Post)  
Old 11th August 2015
e1-531g e1-531g is offline
VPN Cryptographer
 
Join Date: Mar 2014
Posts: 448
Default

Thank you. I have done what jggimi suggested and it worked
(changed only d for a). Then upgrade. After that reboot
and sysmerge. Exported PKG_PATH to snapshot directory on mirror,
pkg_add -u. Touchpad doesn't worked and I think that
Code:
fw_update -a -v
helped. Now everything is fine.

Thank you for help.
Reply With Quote
Reply

Tags
from release to current, from stable to current, upgrade encrypted

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
Upgrading question [CURRENT] failing buildworld jb_daefo FreeBSD Installation and Upgrading 0 11th July 2015 12:38 AM
xkcd-viewer being stubborn both on -current and stable daemonfowl OpenBSD Packages and Ports 7 19th July 2013 03:23 AM
upgrading current to 5.4 beta results in libc.so.68.4 loading problem daemonfowl OpenBSD Installation and Upgrading 5 14th July 2013 01:58 AM
Questions, Ports / current|stable ax0 OpenBSD Installation and Upgrading 42 16th April 2009 08:23 PM
ports: stable or current? schrodinger OpenBSD Packages and Ports 4 11th August 2008 01:18 PM


All times are GMT. The time now is 06:02 AM.


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