Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cbsd initenv failed if tmux is missing when upgrading to 12.1.0 #431

nelson-ks opened this issue Sep 13, 2019 · 2 comments


Copy link

@nelson-ks nelson-ks commented Sep 13, 2019

Mandatory info for bug reports:

FreeBSD version ( uname -a ):
FreeBSD 12.0-RELEASE-p8 FreeBSD 12.0-RELEASE-p8 GENERIC amd64

CBSD version ( cbsd version ):

I did an upgrade of cbsd from 12.0.13 to 12.1.0 from the ports.
When I ran cbsd initenv it failed with following:

-------[CBSD v.12.1.0]-------
 This is install/upgrade scripts for CBSD.
 Don't forget to backup.
Do you want prepare or upgrade hier environment for CBSD now?
[yes(1) or no(0)]
>>> Installing or upgrading
[Stage 0: upgrading and migration data from 12.0.13 to 12.1.0]
[Stage 1: account & dir hier]
 * Check hier and permission...
cmdboot: no such executable: tmux
/usr/jails/cmd.subr: 29: Syntax error: end of file unexpected (expecting "fi")
/usr/jails/cmd.subr: 29: Syntax error: end of file unexpected (expecting "fi")

Then the cmd.subr was broken and the cbsd failed to ran afterwards.

The solution for me was to edit the cmd.subr (to end with fi) and install tmux.

Maybe the port was not updated with tmux as dependency?

Thanks for your great work.


This comment has been minimized.

Copy link

@olevole olevole commented Sep 13, 2019

Thx for the reports! This is already fixed on Github/develop but not included in the latest release. I will send a new port soon.

PS: and yes, tmux should remain optional because it is only for bhyve, this is a logical mistake in 12.1.0

@olevole olevole self-assigned this Sep 13, 2019
olevole added a commit that referenced this issue Sep 13, 2019
bump CBSD version
Issue #431

This comment has been minimized.

Copy link

@olevole olevole commented Sep 13, 2019

12.1.1 bugfix release commited to ports. Thanks!

@olevole olevole closed this Sep 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.