On Tue, May 26, 2020 at 12:03:50AM +0200, Sebastian Benoit wrote:
> Solene Rapenne([email protected]) on 2020.05.25 15:25:40 +0200:
> > Hi,
> > 
> > I don't know if this will be accepted but I propose to add a -u [url]
> > parameter to use older snapshots from an archive server for example.
> > 
> > I wanted to add an optional parameter to -s at first but in case of
> > sysupgrade -s [installurl] the install url would have been mistaken by
> > this.
> > 
> > If you specify a -u url and installurl at the same time, -u url
> > superseed installurl.
> > 
> > This would allow easier bisecting using older snapshots.
> 
> I have fixed the way the directories are laid out, so now you can do this
> 
>  # echo "http://ftp.hostserver.de/archive/2020-05-14-0105"; > /etc/installurl
>  # sysupgrade -n
>  # strings /home/_sysupgrade/bsd | grep 6.7-current         
>     @(#)OpenBSD 6.7-current (GENERIC) #181: Wed May 13 12:43:30 MDT 2020
> 

Just for the archives, one can provide the URL on the command line,
which I think is more sensible for this particular usecase:

$ doas sysupgrade -n http://ftp.hostserver.de/archive/2020-05-14-0105
[...]
$ what /home/_sysupgrade/bsd
/home/_sysupgrade/bsd:
        OpenBSD 6.7-current (GENERIC) #181: Wed May 13 12:43:30 MDT 2020

-- 
I'm not entirely sure you are real.

Reply via email to