Stuart Henderson <[email protected]> wrote:

> On 2020/07/15 02:32, [email protected] wrote:
> > 
> > Perhaps I am doing something wrong.  Or maybe there is a bug.
> > 
> > I have done quite a few installs in the last couple of weeks,
> > and on first boot, /etc/rc.firsttime doesn't work.  It seems
> > that DNS isn't working yet, and perhaps /etc/rc.firsttime
> > runs too early in the process.
> 
> It needs to run early, because after updating the OS, daemons starting
> (including name server daemons) may depend on changes made by sysmerge.

"run_upgrade_script firsttime" actually occurs quite late in /etc/rc.
Majority of base daemons are started beforehands.

> > The failures are all due to DNS resolving not working yet.
> 
> So the only DNS server you list is on the local machine? This isn't the
> only place you'll have a problem - you will also have failures if you
> boot the install kernel and do an upgrade from there using a network
> source (which is where most people have run into this problem).

Indeed, something else is not working right.

> There are suggestions of doing something different for fw_update but
> changes there won't help your local commands that expect to have DNS
> before the daemon is running.

OP - I suggest you modify /etc/rc to diagnose this. Search for
"run_upgrade_script firsttime" in /etc/rc, and put some diagnostics
at that point.  Or, put some diagnostics into the firsttime script
itself.

Reply via email to