←back to thread

OpenBSD 7.8

(cdn.openbsd.org)
282 points paulnpace | 1 comments | | HN request time: 0.289s | source
Show context
dbbr ◴[] No.45668346[source]
I currently run a PC Engines APU2 as my home firewall/router. Been doing so for years and I really like it, yet I am still an OpenBSD newb. When I ran a sysupgrade from 7.5 -> 7.6, I completely ran out of space on /usr and the upgrade utterly failed. Had to reinstall full system at that point. The issue is that my hard drive is very small and the auto format utility only allocates 1.8G to /usr. Right now, I currently have 1.5G out of 1.8G in use. On the OpenBSD mailing lists, a user asked a question that is virtually identical to the situation I am in – they are worried that if they do another sysupgrade, it will fail and they will need to reinstall. A potential solution was proposed here [0] but the process seems somewhat complex for an OpenBSD newb like me. Could anyone point me in the right direction to guides that would detail the process, which the person on the mailing list describes, that basically involves deleting /usr/obj and /usr/src and allocating that ‘saved space’ back to /usr? Thanks.

[0] https://marc.info/?l=openbsd-misc&m=175952911527704&w=2

replies(2): >>45671445 #>>45671633 #
1. _0xdd ◴[] No.45671633[source]
Easier fix might be if you aren't using /usr/src (or /usr/opt) to move the contents of /usr/share/relink into /usr/src (make sure you move it, not copy, so that /usr/share/relink is empty), and then change the /usr/src mount point in /etc/fstab to /usr/share/relink. Reboot the machine and hopefully it works. If you ran out of space during the installation, you may have to repeat sysupgrade to reinstall the 7.8 sets to get all the object files where they belong.