cp -v /boot/vmlinu* $TARGET_DIR/
cp -v /boot/config* $TARGET_DIR/
cd /lib/modules/*storage/
-/bin/tar -cJvf $TARGET_DIR/modules-${KERNEL_VERSION}.tar.xz .
+/bin/tar -cJvf $TARGET_DIR/modules-###{KERNEL_VERSION}.tar.xz .
echo "Job : $JOB_NAME" > $TARGET_DIR/sources.txt
echo "Build-Nr.: $BUILD_NUMBER" >> $TARGET_DIR/sources.txt
echo "URL : http://jenkins/job/$JOB_NAME/$BUILD_NUMBER/" >> $TARGET_DIR/sources.txt
-echo "Kernel: : $KERNEL_VERSION" >> $TARGET_DIR/sources.txt
+echo "Kernel: : ###KERNEL_VERSION" >> $TARGET_DIR/sources.txt
echo >> $TARGET_DIR/sources.txt
apt-cache show profitbricks-linux-image-storage >> $TARGET_DIR/sources.txt
apt-cache show profitbricks-andbd-modules-storage >> $TARGET_DIR/sources.txt
EOF
chmod +x $BUILD_SCRIPT
# turn the shell call back into a shell call
-sed -i -s "s|###|$|" $BUILD_SCRIPT
+sed -i -s "s|###|$|g" $BUILD_SCRIPT
#
# build liveboot