git: 82431b7506d6 - main - rc: remove the 'archdep' script

Edward Tomasz Napierala trasz at freebsd.org
Tue Apr 13 20:15:28 UTC 2021


On 0412T1151, Rodney W. Grimes wrote:
> > The branch main has been updated by trasz:
> > 
> > URL: https://cgit.FreeBSD.org/src/commit/?id=82431b7506d646165d52f11bc2958e8ce8ec5cce
> > 
> > commit 82431b7506d646165d52f11bc2958e8ce8ec5cce
> > Author:     Edward Tomasz Napierala <trasz at FreeBSD.org>
> > AuthorDate: 2021-04-12 13:38:16 +0000
> > Commit:     Edward Tomasz Napierala <trasz at FreeBSD.org>
> > CommitDate: 2021-04-12 14:18:17 +0000
> > 
> >     rc: remove the 'archdep' script
> >     
> >     It was unused since 405c3050f10, which removed iBCS support.
> >     
> >     This also moves the 'linux' rc script slightly earlier, which
> >     might help in some setups.  The original version of this patch
> >     moved it even more, before 'mountcritlocal', which would fixe
> >     mount(8) errors due to missing /dev/shm in setups with entries
> >     for /path/to/chroot/dev/shm without the "late" flag; however,
> >     in the end 'kldxref' turned out to depend on 'mountcritlocal'
> >     anyway.
> 
> I would think that these hintts are built and kernel/module
> install time, not at the much later when the system is booting.

They are, for amd64.  The problem here is that kldxref(8) doesn't
work for cross builds.

> Crazy idea, but first isnt it too late for hints by the time
> this runs?  So... change this from a _start to a _shutdown
> action and build the hints files on the way down so that
> all things are ready next time the system boots.  This
> would fix the /usr mount issue.

This would cause failures on first boot, though.  Also, no, I don't
think this is too late - we mount /usr quite early in the boot sequence.



More information about the dev-commits-src-all mailing list