You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Both commands ugprade and update use freebsd-update(8) to update releases and thick jails. Unfortunately, they assume that freebsd-update will rebase all commands on top of the basedir passed, thus fully isolate all operations. It does not. The command is broken in this regard.
Bastille and FreeBSD version (paste bastille -v && freebsd-version -kru output)
0.10.20231013
13.2-STABLE
13.2-STABLE
13.2-STABLE
How did you install bastille? (port/pkg/git)
port
Expected behavior
For release updates/upgrades:
pass -f from the release root
pass -d outside of release root, but independent of the jailhost, e.g., /var/db/bastille/releases/{release}/freebsd-update/
For thick jail updates/upgrades:
pass -j to reduce params
pass -f from the jail root
pass -d from the jail root (thus the update dir will remain completely inside the jail)
Additional context
Gladly, I have tested the upgrade in a separate host where the jails were shredded. I will refrain from using bastille update/upgrade for now. If desired, I can provide a PR for this.
The text was updated successfully, but these errors were encountered:
Describe the bug
Both commands
ugprade
andupdate
usefreebsd-update(8)
to update releases and thick jails. Unfortunately, they assume thatfreebsd-update
will rebase all commands on top of the basedir passed, thus fully isolate all operations. It does not. The command is broken in this regard.See:
It pollutes the jailhost and uses potentially wrong config.
Sources:
Bastille and FreeBSD version (paste
bastille -v && freebsd-version -kru
output)0.10.20231013
13.2-STABLE
13.2-STABLE
13.2-STABLE
How did you install bastille? (port/pkg/git)
port
Expected behavior
For release updates/upgrades:
-f
from the release root-d
outside of release root, but independent of the jailhost, e.g.,/var/db/bastille/releases/{release}/freebsd-update/
For thick jail updates/upgrades:
-j
to reduce params-f
from the jail root-d
from the jail root (thus the update dir will remain completely inside the jail)Additional context
Gladly, I have tested the upgrade in a separate host where the jails were shredded. I will refrain from using
bastille update/upgrade
for now. If desired, I can provide a PR for this.The text was updated successfully, but these errors were encountered: