apt-get install -y grub2
apt-get -y install profitbricks-andbd-modules-storage profitbricks-linux-image-storage || true
mkdir -p $TARGET_DIR
-export KERNEL_VERSION=$(ls /boot/vmlinu* | cut -d "-" -f2-)
+export KERNEL_VERSION=###(ls /boot/vmlinu* | cut -d "-" -f2-)
cp -v /boot/vmlinu* $TARGET_DIR/
cp -v /boot/config* $TARGET_DIR/
cd /lib/modules/*storage/
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
#
# build liveboot