XenServer: Fix initramfs scripts

During bashate -ing some files with .sh extension has been modified,
which are interpreted with /bin/sh, which takes a different syntax.
Fixing the issue:
    - rename the files, so they are not picked up
    - use syntax that's understood by sh

Change-Id: I617b24813df86687ca33745d0c940b0c659f2e14
This commit is contained in:
Mate Lakat 2014-10-28 14:56:49 +01:00
parent 5955b11544
commit 76dd12c9a5
3 changed files with 5 additions and 4 deletions

View File

@ -163,11 +163,11 @@ function get_state {
}
function create_resizing_initramfs_config {
cp "$THIS_DIR/xenserver_helper_initramfs_hook.sh" \
cp "$THIS_DIR/xenserver_helper_initramfs_hook" \
/usr/share/initramfs-tools/hooks/resize
chmod +x /usr/share/initramfs-tools/hooks/resize
cp "$THIS_DIR/xenserver_helper_initramfs_premount.sh" \
cp "$THIS_DIR/xenserver_helper_initramfs_premount" \
/usr/share/initramfs-tools/scripts/local-premount/resize
chmod +x /usr/share/initramfs-tools/scripts/local-premount/resize
}

View File

@ -4,7 +4,7 @@ set -e
PREREQ=""
function prereqs {
prereqs () {
echo "${PREREQ}"
}

View File

@ -5,7 +5,8 @@ set -ex
PREREQ=""
# Output pre-requisites
function prereqs {
prereqs()
{
echo "$PREREQ"
}