a small fix for __type/jail

1 view
Skip to first unread message

Shannon Prickett

unread,
Jun 2, 2026, 9:23:37 PM (11 days ago) Jun 2
to cdist-configura...@googlegroups.com
I imagine this is not a type which gets heavy use but I'm using it & fixed a small bug.
You're welcome to use or ignore the codet. Patch pasted below.
- Shannon

diff --git a/cdist/conf/type/__jail/manifest b/cdist/conf/type/__jail/manifest

index fad6a3a1..8f90ee4e 100755

--- a/cdist/conf/type/__jail/manifest

+++ b/cdist/conf/type/__jail/manifest

@@ -43,7 +43,7 @@ for property in *; do

        set -- "$@" "--$property" "$(cat "$property")"

 done


-if grep -q '^10\.' "$(cat "$__global/explorer/os_version")" ; then   # Version is 10.x

+if grep -q '^[[:digit:]]\{2,\}\.' "$__global/explorer/os_version" ; then # Version > 9.x

    __jail_freebsd10 "$@"

 else

    __jail_freebsd9 "$@"

Nico Schottelius

unread,
Jun 5, 2026, 6:49:05 AM (8 days ago) Jun 5
to Shannon Prickett, cdist-configura...@googlegroups.com

Hello Shannon,

I've applied it to the master branch. Probably going to create a release
based on it in the next weeks.

Thanks for your contribution.

BR,

Nico
--
Sustainable and modern Infrastructures by ungleich.ch
Reply all
Reply to author
Forward
0 new messages