On Fri, Jan 13, 2017 at 06:14:16PM GMT, Theo de Raadt wrote:
> > On Fri, Jan 13, 2017 at 06:20:25AM -0600, Ed Ahlsen-Girard wrote:
> > > The man page seems to indicate that autoinstall will work with an
> > > auto_upgrade.conf file on the local machine, but specifying the path as:
> > >
> > > /auto_upgrade.conf
> > > or
> > > file://auto_upgrade.conf
> > > or
> > > file:////auto_upgrade.conf
> > >
> > > do not work.
> > >
> > > Is this still a "watch this space!" feature?
> >
> > It does work. However, / is the root of bsd.rd, not the root of the
> > system you want to upgrade (this would have to be guessed and the
> > upgrade script doesn't do guessing without asking for confirmation).
> > It's a bit of a pain to get the file there, and I don't think there's
> > any official documentation. semarie@ wrote some instructions a while
> > back:
> > https://marc.info/?l=openbsd-misc&m=141552533922277&w=2
> > see also:
> > https://marc.info/?l=openbsd-misc&m=146890249418788&w=2
> > where he indicates that there are more posts to be found on misc (but I
> > don't know where).
>
> I would be very surprised to hear that people are using
> vnconfig+mount+vnconfig+mount, to add such a file. And while doing so
> potentially running low on space issues (it isn't just a matter of
> the file fitting, there must be some slop left over because the
> installer needs a bit of /tmp)
>
> Should everything work in every way? I'm not so sure. My truck
> still doesn't fly.
>
OK, so I'll admit that I've been using Sebastien's tip for a couple of
years now but, it seem that, I have been lucky it always worked -
probably due to the fact that my auto_upgrade.conf file is only
three lines long (it was two-line long for a while):
Location of sets = disk
Is the disk partition already mounted = yes
Pathname to the sets = $DIR
Given that there is no official supported way to put an
auto_upgrade.conf onto an existing bsd.rd, what would be a suggested
way to achieve the same end result - in this case, an automated
non-interactive, off-line upgrade?
Cheers,
Raf