On 09.07.19 15:13, Theo de Raadt wrote:
i am a huge fan of sysupgrade. It works perfectly on my laptop where i
use all sets that OpenBSD provides. But now i want to start to use
sysupgrade on a router where i don't need the "x*" sets.
I looked at the manual here (https://man.openbsd.org/sysupgrade) but
did not find a way to exclude them (-x*) from the selection.
In this case i also cannot use an answer file from a DHCP server
because i don't control the DHCP environment in that network. So that
option falls flat for me. Is there a way to remove sets from the
installation that i am missing?
No there isn't.
thank you very much for your answer.
I looked into the source again and found a way that works for me. I use
sysupgrade -n to download everything and then i remove the files
manually from /home/_sysupgrade and then reboot. The installer reads the
directory and only offers the sets stored in there.
#!/bin/sh
sysupgrade -n
rm /home/_sysupgrade/x*
rm /home/_sysupgrade/game*
reboot
I am sorry i did not think about this before asking on the mailing list.
Thanks and greetings
Leo :)