tldr; the file /etc/rc.subr was not properly updated during the upgrade.
OP
Following an upgrade of the host and jail to 14.1 upgrades of pkg itself on the jail produce this error:
This error does not appear for any other pkg that I have reinstalled.
However, this error prevents iocage from shutting down the jail:
OP
Following an upgrade of the host and jail to 14.1 upgrades of pkg itself on the jail produce this error:
Code:
# pkg upgrade -f pkg
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):
Installed packages to be REINSTALLED:
pkg-1.21.3
Number of packages to be reinstalled: 1
Proceed with this action? [y/N]: y
[webdav-1.hamilton.harte-lyne.ca] [1/1] Reinstalling pkg-1.21.3...
[webdav-1.hamilton.harte-lyne.ca] [1/1] Extracting pkg-1.21.3: 100%
/etc/rc.subr: 2323: Syntax error: end of file unexpected (expecting "fi")
pkg: POST-INSTALL script failed
You may need to manually remove /usr/local/etc/pkg.conf if it is no longer needed.
This error does not appear for any other pkg that I have reinstalled.
However, this error prevents iocage from shutting down the jail:
Code:
]# iocage stop webdav-1
* Stopping webdav-1
+ Executing prestop OK
+ Stopping services FAILED
ERROR:
/etc/rc.subr: 2323: Syntax error: end of file unexpected (expecting "fi")
Please use --force flag to force stop jail