Commit fc8cbf90 authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Rename create-fixed helper script to create-helper

Rename snf-image-create-fixed-helper script to snf-image-create-helper.
Also remove the command that will create a tar archive of the helper
files under /tmp
parent d492592c
......@@ -16,7 +16,7 @@ dist_os_DATA = ${srcdir}/ganeti_api_version ${srcdir}/parameters.list \
dist_xenscripts_SCRIPTS = ${srcdir}/vif-snf-image
dist_bin_SCRIPTS = snf-image-update-helper snf-image-create-fixed-helper
dist_bin_SCRIPTS = snf-image-update-helper snf-image-create-helper
os_DATA = ${srcdir}/common.sh
......
......@@ -25,7 +25,6 @@ INSTALL_MBR="install-mbr"
TIMEOUT="timeout"
CURL="curl"
TAR="tar"
XZ="xz"
DATE="date -u" # Time in UTC
# Temporary use stderr as monitoring file descriptor.
......
......@@ -79,4 +79,3 @@
# TIMEOUT="timeout"
# CURL="curl"
# TAR="tar"
# XZ="xz"
#!/bin/bash
# Copyright (C) 2011 GRNET S.A.
# Copyright (C) 2011 GRNET S.A.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
......@@ -67,7 +67,7 @@ while getopts "d:hp:y" opt; do
done
echo
echo "This is the update helper image script for snf-image."
echo "This is the helper image creation script for snf-image."
echo "If you don't know what to do, use \`-h'."
echo
......@@ -229,16 +229,6 @@ mv "$helper_img" "$HELPER_DIR/image"
echo "Files in \`$HELPER_DIR' were updated successfully" >&2
TMPDIR=$(mktemp -d)
echo "Creating fixed appliance in \`$TMPDIR':" >&2
echo >&2
(cd "$HELPER_DIR"; $TAR -cvf "$TMPDIR/snf_image_helper_image-${helper_version}.tar" "$kernel_xen" "$initrd_xen" "$kernel" "$initrd" kernel initrd kernel-xen initrd-xen image packages)
echo >&2
echo -n "Compressing fixed appliance ..." >&2
(cd "$HELPER_DIR"; $XZ -9 "$TMPDIR/snf_image_helper_image-${helper_version}.tar")
echo "done" >&2
exit 0
# vim: set sta sts=4 shiftwidth=4 sw=4 et ai :
#!/bin/bash
# Copyright (C) 2011 GRNET S.A.
# Copyright (C) 2011 GRNET S.A.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment