Oooh, neat. Thanks for this!

On 2021-08-28 09:26 +02, Sebastien Marie <sema...@online.fr> wrote:
> On Fri, Aug 27, 2021 at 08:17:51PM -0500, Aaron Poffenberger wrote:
>> Following is patch to add a flag to upgrade packages during
>> rc.firsttime after a sysupgrade.
>> 
>
> if you need this flag, is it a ponctual usage (running sysupgrade with
> the flag or not, depending the moment) ? or you will use it everytime
> you use sysupgrade ?
>
> for permanent usage, I would recommand using existing facility: the
> /upgrade.site script.
>
> for example:
>
> # cat /upgrade.site
> #!/bin/sh
> PATH=/sbin:/bin:/usr/sbin:/usr/bin
>
> # upgrade packages
> echo 'pkg_add -Iu' >>/etc/rc.firsttime
>
> # run sysclean (if installed)
> echo '[ -x /usr/local/sbin/sysclean ] && /usr/local/sbin/sysclean | mail -Es 
> sysclean root &' >>/etc/rc.firsttime
>
> exit 0
> #
>
> bsd.rd upgrade will run /upgrade.site (/ from target root disk) at end
> of the upgrade process (it is ran chrooted in the target root
> disk). during upgrade it is adding lines in /etc/rc.firsttime, and at
> reboot it will run "pkg_add -Iu" and "sysclean" (mailing output to
> root) each time.
>
> It would be more convinent than using a flag at sysupgrade invocation
> (no risk to omit it).
>
> Thanks.
> -- 
> Sebastien Marie
>

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

Reply via email to