firmware: repeat the update after pkg reinstall

It appears that the package manager lost a number of tricks
over the years so now we add more manual labor to do what
we expect of it.
This commit is contained in:
Franco Fichtner 2026-03-16 10:48:03 +01:00
parent 369630dbd3
commit c0d5331e1f

View file

@ -1,6 +1,6 @@
#!/bin/sh
# Copyright (C) 2015-2025 Franco Fichtner <franco@opnsense.org>
# Copyright (C) 2015-2026 Franco Fichtner <franco@opnsense.org>
# Copyright (C) 2014 Deciso B.V.
# All rights reserved.
#
@ -117,6 +117,7 @@ if [ -z "${PKG_LOCAL}" ] || [ -z "${PKG_REMOTE}" ] || \
[ "${PKG_LOCAL}" != "${PKG_REMOTE}" ]; then
output_txt "Upgrading package manager from version '${PKG_LOCAL}' to '${PKG_REMOTE}'"
output_cmd ${PKG} upgrade -r "${product_repo}" -y pkg
output_cmd -o ${OUTFILE} ${PKG} update -f
fi
# parse early errors