Update Jail base binaries

Rami freebsd at posteo.co
Mon Oct 30 07:37:10 UTC 2017


 

Hi everyone,

I have an issue which I got aware of by accident couple of days ago
while I was upgrading a port in the jail.
I have a jail created using ezjail and running Gitea port in it. The
host system was back then 11.0.
Recently Gitea got updated so after upgrading the installed port in the
jail, the service started complaining as below

 ~ # service gitea start

daemon: illegal option -- S
usage: daemon [-cfr] [-p child_pidfile] [-P supervisor_pidfile]
 [-t title] [-u user] command arguments ...

After a bit of investigating we figured out that the binaries in the
jail are behind the host (and the jail kernel release). please check
below (note I updated the host using freebsd-update and the jail using
ezjail-admin update -u)

The jail where the gitea is running

# freebsd-version
11.1-RELEASE-p2# uname -a

#uname -a
FreeBSD git.jail 11.1-RELEASE-p1 FreeBSD 11.1-RELEASE-p1 #0: Wed Aug 9
11:55:48 UTC 2017
_ROOT at AMD64-BUILDER.DAEMONOLOGY.NET_:/usr/obj/usr/src/sys/GENERIC amd64

# sha256 /usr/sbin/daemon
SHA256 (/usr/sbin/daemon) =
2f1d9b434cae89c67aefa9798b87fd97bcde2f70b2ba0140b7052ae6536aaf8a

# /usr/sbin/daemon 
_USAGE: DAEMON [-CFR] [-P CHILD_PIDFILE] [-P SUPERVISOR_PIDFILE]_ [-T
TITLE] [-U USER] 
COMMAND ARGUMENTS ...

The host

~ % freebsd-version 
11.1-RELEASE-p2~ 

% #uname -a
_FREEBSD SERVER-LINODE-1-GIT 11.1-RELEASE-P1 FREEBSD 11.1-RELEASE-P1 #0:
WED AUG 9 11:55:48 UTC 2017
__ROOT at AMD64-BUILDER.DAEMONOLOGY.NET__:/USR/OBJ/USR/SRC/SYS/GENERIC
AMD64_~ 

% sha256 /usr/sbin/daemon
SHA256 (/usr/sbin/daemon) =
2b029a5c274c6292870caf35470041c2553b768346bb001c97d447877bc9caf5~ 

% /usr/sbin/daemon
_USAGE: DAEMON [-CFRS] [-P CHILD_PIDFILE] [-P SUPERVISOR_PIDFILE]__ [-U
USER] [-O OUTPUT_FILE] [-T TITLE]__ [-L SYSLOG_FACILITY] [-S
SYSLOG_PRIORITY]_ [-T SYSLOG_TAG] [-M OUTPUT_MASK]
_COMMAND ARGUMENTS ..._

I will always update the jails using 
# ezjail-admin update -u 

and the ports 
_# ezjail-admin update -P

So it seems the kernel been updated yet not the binaries.... can anyone
please advise me to what is the best way to keep the whole system
kernel, base, and ports up to date in the jail (and keep the base
binaries and kernel match the same release)

Thanks so much
Rami
 


More information about the freebsd-questions mailing list