On 2019-09-15, Judah Kocher <[email protected]> wrote:
> Thanks to the OpenBSD team for their awesome software!
>
> I have been running an Openbsd router for a few years now, mostly
> following current. Today I decided to try out sysupgrade rather than
> going through the usual manual process. I've read up on it a few times
> and it seemed pretty straightforward.
>
> I ran it and found too late that it installed all the x*, Comp and Game
> sets, which were not part of the original install. Unfortunately this
> overfilled my /usr partition and I'm getting errors on boot.
>
> Is there a simple way to uninstall these sets? I need the space but
> would much rather not start over from scratch.
>
> I did find an email (too late) on this list about how there is no way to
> tell sysupgrade to just upgrade an existing system without adding
> everything else too. As a grateful user of free software I would also
> like to ask, is that an option that might find its way into the system
> sometime?
While you can do that (see other replies), if it's not too painful
and you have say 8GB or more storage capacity I would advise saving
config and reinstalling -current allowing more space for /usr.
On some storage devices (notably the common 16GB SSD that
is often used with pc engines APUs) the old disklabel auto default
sizes were a bit too small to handle upgrades comfortably, this has been
revised in -current in the last month or so and the new defaults will
now give a little breathing space.
If you are currently faced with a non-booting system I would
suggest booting bsd.rd, choose to upgrade, ^Z, rm -r the following:
/mnt/usr/{bin,sbin,lib*,share}
/mnt/usr/X11R6/*
then "fg" and start the upgrade with whatever sets you need.