diff --git a/hooks/debian/10-disable-tls b/hooks/debian/10-disable-tls index e53b33b..7a916fa 100755 --- a/hooks/debian/10-disable-tls +++ b/hooks/debian/10-disable-tls @@ -1,6 +1,7 @@ #!/bin/sh # -# This script disables TLS on the new image. +# This script disables TLS on the new image or installs a Xen-aware +# version of libc where it is available. # # Steve # -- @@ -26,20 +27,23 @@ logMessage Script $0 starting -# -# Disable TLS and create an empty directory in its place -# -mv ${prefix}/lib/tls ${prefix}/lib/tls.disabled -mkdir ${prefix}/lib/tls - # -# For sid + etch systems install libc6-xen +# For sid or etch systems we install libc6-xen +# +# For sarge we don't have that option, so we disable TLS. # case "${dist}" in etch|sid) + logMessage "Installing xen-aware libc6" + installDebianPackage ${prefix} libc6-xen ;; + *) + logMessage "Disabling TLS" + mv ${prefix}/lib/tls ${prefix}/lib/tls.disabled + mkdir ${prefix}/lib/tls + ;; esac diff --git a/hooks/ubuntu/10-disable-tls b/hooks/ubuntu/10-disable-tls index e53b33b..2e063bc 100755 --- a/hooks/ubuntu/10-disable-tls +++ b/hooks/ubuntu/10-disable-tls @@ -1,6 +1,12 @@ #!/bin/sh # -# This script disables TLS on the new image. +# This script disables TLS on the new image or installs a Xen-aware +# version of libc where it is available. +# +# -- +# TODO: Get an Ubuntu user to explain Dapper/Edgey stuff to me, we +# should fix this script to work with libc6-xen there too .. +# -- # # Steve # -- @@ -26,20 +32,23 @@ logMessage Script $0 starting -# -# Disable TLS and create an empty directory in its place -# -mv ${prefix}/lib/tls ${prefix}/lib/tls.disabled -mkdir ${prefix}/lib/tls - # -# For sid + etch systems install libc6-xen +# For sid or etch systems we install libc6-xen +# +# For sarge we don't have that option, so we disable TLS. # case "${dist}" in etch|sid) + logMessage "Installing xen-aware libc6" + installDebianPackage ${prefix} libc6-xen ;; + *) + logMessage "Disabling TLS" + mv ${prefix}/lib/tls ${prefix}/lib/tls.disabled + mkdir ${prefix}/lib/tls + ;; esac