See KNOWN_BUGS.markdown for real bugs.
-Bugs to fix and features to add for 4.3
----------------------------------------
-
-Refactor TLS disabling. Seems to be happen twice, once in 20-setup-apt
-and once in 10-disable-tls.
-
Bugs to fix and features to add for 5.0
---------------------------------------
* Use `Perl::Critic`
+* Refactor the different Ubuntu hooks directories so that only one
+ ubuntu hooks directory is left.
+
+ Then also refactor TLS disabling so that it works on all
+ distributions the same. Currently Debian is a special case and
+ Ubuntu half a special case.
+
Stuff from Steve's TODO list / Generic TODOs
--------------------------------------------
- Also recognize "M" and "G" instead of "MB" and "GB" as size unit for
--memory. (Closes: #691320) Document the recognized units.
- Default DomUs to use the noop scheduler (Closes: #693131)
+ - Overwork TLS disabling on Debian and Ubuntu
- xen-list-images update:
+ now understands the --extension option.
+ also outputs the file name of the config file
#
-# Now fixup TLS on non-64bit systems after dapper.
+# Now fixup TLS on non-64bit systems after dapper. For dapper this is
+# already fixed in 10-disable-tls.
#
-if [ "$dist" != 'dapper' ]; then
- if [ "`uname -m`" = "x86_64" ]; then
+if [ "$arch" = 'i386' -a "$dist" != 'dapper' ]; then
- logMessage "Ignoring TLS since we're a 64 bit host."
+ logMessage "Installing libc6-xen"
+ installDebianPackage ${prefix} libc6-xen
- else
-
- logMessage "Installing libc6-xen"
- installDebianPackage ${prefix} libc6-xen
- fi
fi
#
chroot ${prefix} /usr/bin/apt-get update
-
#
-# For sid or etch systems we install libc6-xen
+# For all systems after Sarge we install libc6-xen on i386
#
-# For sarge we don't have that option, so we disable TLS.
+# For Sarge we don't have that option, so we disable TLS the hard way.
#
-if [ "`uname -m`" = "x86_64" ]; then
-
- logMessage "Ignoring TLS since we're a 64 bit host."
-
-else
-
- case "${dist}" in
- *)
- logMessage "Installing xen-aware libc6"
-
- installDebianPackage ${prefix} libc6-xen
- ;;
- sarge)
- logMessage "Disabling TLS"
- mv ${prefix}/lib/tls ${prefix}/lib/tls.disabled
- mkdir ${prefix}/lib/tls
- ;;
- esac
+if [ "${arch}" = "i386" ]; then
+ if [ "${dist}" = 'sarge' ]; then
+ logMessage "Disabling TLS"
+ mv ${prefix}/lib/tls ${prefix}/lib/tls.disabled
+ mkdir ${prefix}/lib/tls
+ else
+ logMessage "Installing xen-aware libc6"
+ installDebianPackage ${prefix} libc6-xen
+ fi
fi