This was tested with Version 20131121-1 of the bootimage from testing. Its possible that this also works on other version. If not please report it to me — dkoch 2014/02/06 13:23
The OPSI-Bootimage lacks support for parallel xz compression which was recommended in my environment so i included it. XZ has compressed an image of 10GB to 4,4GB compared to gzip while more or less decompressing it as fast as gzip. I am using this with ntfs-write-image and ntfs-restore-image.
Get the files needed for pxz and pixz from my webserver
http://blackhole.triple6.org/opsi/pixz.tar.gz http://blackhole.triple6.org/opsi/pxz.tar.gz
and store them in your document root of the Webserver. ( /var/www/ is the default if you are running apache2 for example ) If you don't have a webserver yet install it on your opsi-server by executing these commands ( these include download of required packages and fixing permissions )
apt-get install apache2 -y wget -N blackhole.triple6.org/opsi/pixz.tar.gz -O /var/www/pixz.tar.gz wget -N blackhole.triple6.org/opsi/pxz.tar.gz -O /var/www/pxz.tar.gz chown www-data:www-data /var/www/ -R
Create another file named post-boot.sh in your document root as follows:
#!/bin/bash wget -N domain-of-the-webserver/pxz.tar.gz wget -N domain-of-the-webserver/pixz.tar.gz # If you do not want to setup your own webserver you can insert my public webserver blackhole.triple6.org ( this is not recommended! ) tar xaf pxz.tar.gz tar xaf pixz.tar.gz cp -a lib/* /lib/ cp -a usr/* /usr/ exit 0
This script will download pxz and pixz from domain-of-the-webserver and patches the boot image before CLIENT_DATA scripts are executed.
In order to execute it you have to add this value to your opsiconfd-settings (host-parameters)
opsi-linux-bootimage.append pre-execute=http://domain-of-the-webserver/post-boot.sh